The state House of Representatives voted 24-17 Thursday to approve a bill that would add Delaware to a growing coalition of states trying to elect the president by national popular vote.

The largely party-line vote in the General Assembly’s lower chamber all but assured that Delaware would pledge its three electoral votes to the National Popular Vote Interstate Compact, which seeks to bypass the Electoral College by pledging state’s electoral votes to the winner of the popular vote nationwide, regardless of who a majority of the states’ voters choose to elect.