The House passed legislation Wednesday evening to end the National Security Agency's bulk collection of Americans' phone records and replace it with a system to search the data on a case-by-case basis.
New Hampshire Democratic Representative Ann McLane Kuster voted in favor of its passage. Republican Frank Guinta voted against it.
The overwhelming vote of 338 to 88 sets the stage for a Senate showdown just weeks before the law authorizing the program is to expire.
If the House bill becomes law, it will represent one of the most significant changes stemming from the security leaks of former NSA contractor Edward Snowden.
But many Senate Republicans don't like the measure, and Senate Majority Leader Mitch McConnell has introduced a separate version that would keep the program as it is.