I’m not convinced the Supreme Court would stop it.
The Constitution gives state legislatures wide latitude in determining how a state’s EVs are cast.
Its illegal for the states to form a compact and conspire against other states. All agreements between states have to be approved by congress.