I think this promotes a misunderstanding of how the Supreme Court works in the US system of government.
No, the Supreme Court wouldn't legalize weapons. The question before the court is whether some restrictions are legal, so the courts ruling would be about the enforceability of a regulation, not the legality of the weapon.
If a state is violating the law by bringing charges against individuals, that's what the Supreme Court would call out.