 The details of this ruling are this. The Supreme Court for the first time said that there is such a thing as absolute immunity for presidents who crimes while in office, so long as there's a colorable claim that it was an official act of the presidency. Now, the prosecution can try to rebut that when it gets back to the district courts, but ultimately a military coup while in office was an official act.