At first TPA wasn't bad, but then the insiders got a hold of it, would do any of the things Cruz wanted to add to stop things like the banking and not adding additional countries (like China) and Trade protections. After the GOPe got through with it, it was a mess. Cruz decided it was bad and voted against it. Cruz wrote about his experience and what made him change his mind. Did Cruz get played, probable. Did the Senate keep in any of his revisions to make TPA acceptable? No. Did Cruz vote for the bad TPA? No, and was quite vocal about why.
The only reason Cruz didn't have to vote yea on the final was because they no longer needed him. Rubio did the deed.
Marco Rubio Casts Deciding Vote For Obamatrade Without Even Reading It