It takes 3/4 of the states to pass.
Well, the agreement to switch to the popular vote is based on the majorty of states. If a majority can be denied, then the compact is dead.