The move gives the rockets Rockets a $45 million gain in cap space.