@Nerde no, that's the opposite of what the SCOTUS ruled. So many outlets misreport that, though.
The Court not only said the president couldn't break the law, but it explicitly ordered court proceedings against the former president to continue.
We really need to correct this record.
https://www.supremecourt.gov/opinions/23pdf/23-939_e2pg.pdf