Probably was promised a ‘position’ within a Clinton administration that he undoubtedly thought would allow him to stay relevant and launch a future campaign from. He would be the great principled ‘uniter’ who ‘voted his conscience’. On the other hand, there may be something much more nefarious involved.
Cruz is a highly paid trouble maker to elect Hillary.