In a 6-3 decision on Tuesday, the Supreme Court rejected a legal theory that gives state legislatures unchecked power to…