The Supreme Court isn’t limited to what has an actual legal basis. Like jury nullification it’s a loophole arising from being the ultimate arbitrator.
Lawyers make arguments. Judges make decisions.
The supreme court’s power isn’t checked. The justices have the final say on just about everything.