The lower courts can be appealed to the higher courts, so the opinion of the supreme court was effectively that the president is immune if they say so, on a case by case basis.
It was a clever but blatant way to give their side immunity without giving it to Biden