They did not say that he was immune. They said that the president has immunity for certain acts. What acts? Whatever acts they, the SCOTUS, decide they should be immune from. So Biden could shoot Trump dead but the court would rule that that was illegal because some bullshit reason.