With Virginia, the total number of states signed on to the interstate compact is now 18, plus the District of Columbia, for a total of 222 electoral votes.
The compact doesn’t go into effect, though, until there are enough states signed up to reach the required 270 electoral votes to elect a president.
“This [effort] started 20 years ago and it’s been slow and steady … constant forward momentum across these 20 years,” said Alyssa Cass, a strategist for the National Popular Vote Project and a Democratic consultant. “Bills have been introduced in almost every state, most passed in a bipartisan way. This is on the 5-yard line of making this a reality.”


"There is no Constitutional provision or Federal law that requires electors to vote according to the results of the popular vote in their States. "
-archive dot gov
But also states have control over running elections unless congresses passes superceding legislation.
yeah, that would be really important if the law mattered to the supreme court