Should I interpret the fact that the majority opinion opposes the trump administration and was written by trump’s appointee as the supreme court’s way of putting trump in his place?
I'd interpret it as the supreme court isn't a political weapon to be used against or for a sitting president rather a tool to interpret law and the anti trump appointee stigma was baseless.
Gorsuch has broken rank w/Trump maybe twice. The only other one that comes to mind was a case concerning the property rights of Indigenous People. But that's still voting with him like 90% of the time. And I don't think Kavanaugh has ever voted against Trump's interests yet. We know for a fact that both of them would very much like to overturn Roe v. Wade.
These are all judges who have largely spent their time reading practicing law. This is almost certainly SCOTUS doing what SCOTUS does based on how they read the law and not some one off political rebuke or any sort.