none of this matters. he wants a republican to win and a democrat to lose. he wrote the immunity opinion because trump is currently the republican nominee and he wants him to be the next president. you don't have to overthink this. roberts certainly didn't.
when roberts votes against trump's interest it is because he thinks he knows better than trump what is in the long term interest of the republican party. don't ever think it's because he has a higher ideal in mind.