The contract's going to look bad in the latter years when he's 36 making $45 mil. But Houston had to sign him to this deal since they're in win-now mode.
It's a big risk, but I agree that they had to take it. I don't think they're winning a title in the next 2 years anyway, especially now that Ariza is gone. But they have zero chance without CP3.