But they also said the president can’t be punished for doing illegal things, so what difference does it make?
They made that ruling while Biden was president. It seems hard to call that an example of rubber stamping for an administration that did not exist yet.
John Roberts and other conservative members of the court do have an ideological commitment to the Unitary Executive Theory of the presidency (foolishly, in my view) but this has the potential to benefit both Democratic and Republican presidents.
Trump claimed repeatedly and vigorously that whatever the President does is by definition legal. He also repeatedly and vigorously claimed that Obama had broken the law by spying on then-candidate Trump in 2016. I don't know if he himself noticed the contradiction but blustered on anwway or was too dense to notice.
[BTW, Trump wasn't spied on -- Russian assets were spied on and it turned out that some of those communications were with Trump's team. There are ~100 pages of these communications captured in the Mueller report. ]