The SAVE America Act, a sweeping Republican election overhaul that President Trump called his congressional allies’ top legislative priority, has officially failed in the Senate.

The measure was brought to a vote as an amendment during lengthy debate over an immigration funding package, marking a significant defeat for Trump’s electoral agenda.

The bill had languished in the Senate for months after the House passed a version in February on a near party-line vote, struggling to gain traction in the upper chamber.

Among its most contentious provisions, the legislation would have required voters to present documentary proof of U.S. citizenship, such as a passport or birth certificate, when registering to vote.

Research has shown that millions of Americans do not have easy access to such documents, raising concerns about widespread voter disenfranchisement.

Experts have also argued the provision is unnecessary, noting that noncitizens have never been shown to vote at anything beyond microscopic numbers in American elections.

“The alleged sin that it is trying to correct happens so infrequently that it really does seem like the solution would be much, much worse than the disease,” said Georgetown law professor Steve Vladeck in an interview with NPR.

Trump had pitched the SAVE America Act as a solution to the fraud he falsely claims is rampant in U.S. elections, making it a centerpiece of his longstanding campaign to cast doubt on American electoral integrity.

“Congress should unite and enact this common-sense, country-saving legislation right now and it should be before anything else happened,” Trump said during his State of the Union address, adding that the only reason Democrats opposed it was because they wanted to cheat.

Trump also posted frequently online about the bill, saying at one point that he would not sign any other legislation before the SAVE Act was passed and that it “supersedes everything else.”

Some Republicans floated the idea of abolishing or circumventing the legislative filibuster to overcome Democratic opposition, but Senate Majority Leader John Thune, R-S.D., made clear there was insufficient appetite among his colleagues for such a move.

“It’s about the votes. It’s about the math,” Thune told reporters. “And I’m — for better or worse — I’m the one who has to be the clear-eyed realist about what we can achieve here.”

The legislation would have also mandated photo identification for all voters and required states to cross-reference voter rolls against a Department of Homeland Security tool that has been found to erroneously flag U.S. citizens.

University of Notre Dame law professor Derek Muller noted that, had it passed, the act would have been “among the most significant nationalization[s] of elections in American history,” marking a sharp break from the traditional Republican opposition to federal oversight of voting.

Muller argued in a March blog post that the bill’s failure may still carry lasting consequences for how both parties approach election policy at the federal level.

“It does strike me that the debate has shifted from whether to nationalize elections to how, at least for many Republicans,” Muller wrote, adding that even in failure, the act could make it “much easier” for Democrats to pursue similar nationalization efforts when they next hold power.