Three coequal branches each are supposed to stay in their own lane. The courts were in the President’s lane. SCOTUS did some course redirection
Oddly enough, the branches are NOT coequal and were never designed to be.
Yes, SCOTUS conformed with the Constitution of the United States and shut down this noise from the lower courts, and they have that authority to do that, but NO court has authority to write any law, adjudicate outside their jurisdiction (as a New York court did in adjudicating the value of a property in Florida), or has any authority over any constitution.
Congress, however, CAN write law, but usually (not always!) have to get it approved by the President. They can fund stuff, but have no direct authority over any other branch of government (other than Senate approvals of certain officers). They also have adjudicating authority for impeachments, and can propose (not implement) amendments to the Constitution of the United States and submit it to the people and the States for ratification.
The President has absolute authority over the executive branch and the military, as Commander in Chief, but he cannot fund them without pulling funds from somewhere else in the executive branch. He can implement executive actions (including changing some minor laws, which can of course be overridden by Congress), and is charged with enforcing the law, even it means bringing in troops to quell the rioting, vandalism, arson, and to protect law enforcement agents like ICE from such thugs. He is also authorized to deport any and all illegal aliens he finds, as part of enforcing the laws passed by Congress (such as CFR Title 8).