That’s not what they ruled at all. They said there was immunity for official acts, specifically citing constitutional powers like appointing judges, commanding the military and recognizing foreign states. That was honestly never in question. A lot of people are reading this wrong. This was a massive punt, which basically opens up the door for a jury to decide what constitutes an official act.
You don’t actually have to. Trust me I’ve been through this.