The White House and congressional backers of the National Security Agency's (NSA) surveillance programme have warned that ending the collection of phone records from millions of Americans would put the US at risk from another terrorist attack.

With a high-stakes showdown vote looming in the House of Representatives, White House press secretary Jay Carney issued a statement on the eve of Wednesday's vote.

The measure by Republican representative Justin Amash would end the secret programme's authority, an action that Mr Carney contended would "hastily dismantle one of our intelligence community's counter-terrorism tools."

General Keith Alexander, head of the NSA, made a last-minute trip to Capitol Hill on Tuesday to urge politicians to reject the measure in separate, closed-door sessions with Republicans and Democrats.

Seven Republican committee chairmen issued a similar plea in a widely-circulated letter to their colleagues.

An unlikely coalition of libertarian-leaning conservatives and liberal Democrats say the programme amounts to unfettered domestic spying on Americans.

Mr Amash and Democratic representative John Conyers are the chief sponsors of an amendment that would end the ability of the NSA to collect phone records and metadata under the USA Patriot Act unless it identifies an individual under investigation.

Mr Amash said his measure tries to rein in the NSA's blanket authority. Responding to the White House statement, the congressman tweeted late on Tuesday: "Pres Obama opposes my #NSA amendment, but American people overwhelmingly support it. Will your Rep stand with the WH or the Constitution?"

Republican leaders allowed the House to consider Mr Amash's amendment to a 598.3 billion dollar (£389.4 billion) defence spending bill for the fiscal year beginning October 1.

Today's vote would be the first time Congress has weighed in since former NSA systems analyst Edward Snowden leaked documents that revealed that the NSA had collected phone records, while a second NSA programme forced major Internet companies to turn over contents of communications to the government.

"This blunt approach is not the product of an informed, open or deliberative process," Mr Carney said.

"We urge the House to reject the Amash amendment, and instead move forward with an approach that appropriately takes into account the need for a reasoned review of what tools can best secure the nation."

Proponents of the NSA programmes argue that the surveillance operations have been successful in thwarting potential terrorist attacks, including a 2009 plot to strike the New York Stock Exchange.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.