The U.S. House of Representatives has passed a bill ending the National Security Agency's bulk collection of phone records.
The White House is under fire for making last-minute changes to the measure.
Under the plan, phone companies would keep the records instead of the NSA. The agency would need court approval to see the records.
The measure now allows wider searches, and civil liberties groups say the White House's revisions are overly broad.