The U.S. Supreme Court has rejected a last-ditch effort by backers of President Donald Trump, aimed at overturning the result of the race for the White House.

“Texas has not demonstrated a judicially cognizable interest in the manner in which another State conducts its elections. All other pending motions are dismissed as moot,” said the court’s unsigned order.

The lawsuit, which was filed by the Texas Attorney General, looked to invalidate votes in four key battleground states won by President-elect Joe Biden: Georgia, Pennsylvania, Wisconsin, and Michigan. Doing so would effectively reverse the election outcome.

More than 100 Republicans on Capitol Hill - including seven from North Carolina - filed an amicus brief urging the court to consider the Texas lawsuit. In the brief, they raised questions about how the election rules in the states were crafted.

“Election law is to be made by the people’s representatives - and those are the legislatures - and for these states to basically circumvent the United States Constitution I think puts our entire elections into question,” said Rep. Greg Murphy, one of the signers.

Overall, seven of North Carolina’s nine Republicans in the U.S. House of Representatives signed the brief: Reps. Dan Bishop, Ted Budd, Virginia Foxx, Richard Hudson, Murphy, David Rouzer, and Mark Walker.

The state’s other two House Republicans - Reps. George Holding and Patrick McHenry - did not.

In a tweet, North Carolina Democrat Rep. David Price blasted the Republican signers, accusing them of “betraying the will of the American people.”

“Joe Biden won in a free and fair election,” Price continued.

North Carolina Attorney General Josh Stein, a Democrat, joined other state attorneys general from across the country in filing a separate brief to the court, opposing the Texas suit.

The Supreme Court order was the latest in a string of legal setbacks for the Trump campaign and its allies.

In recent weeks, they have pushed election-related lawsuits across the country. Many have been rejected, with lawyers failing to provide evidence to back up their public claims of widespread voter fraud.

The Electoral College is set to meet on Monday to formally cast ballots in the presidential contest.