I don't think Lin will finish his contract remaining on the Rockets, unless he shows that his 1-2 months of stellar play is something he can do regularly. (Not impossible, but I don't think likely.)
Instead, Morey has an interesting and marketable point guard for two years at not unreasonable money, and then a giant expiring contract that he can package with draft picks to bring back someone else he hopes to keep in the future.