This scheme is unconstitutional as it seeks to amend the constitution without going through the required process of amending the constitution. So it won't survive the first challenge.
I'm not sure about that.
The U.S. Constitution (Article II, Section 1) gives the states exclusive control over awarding their electoral votes: “Each State shall appoint, in such Manner as the Legislature thereof may direct, a Number of Electors....”