The ruling came after two electors sued to overturn a state law that requires them to vote for the winner of the state’s popular vote in a presidential election. The two reportedly had planned to join an effort to unite with Republicans behind a compromise candidate for president instead of president-elect Donald Trump.