You keep missing the point. We are not discussing whether the Supreme Court was right-- the issue is did they have jurisdiction to decide the case. They obviously did have jurisdiction, notwithstanding that the decision, IMHO, was wrong.
On what basis do they have jurisdiction?