The House of Representatives passed legislation Thursday aimed at ending the National Security Agency's bulk collection of American phone records.
The senate is expected to take up the bill as well.
It's the first legislative response to the revelations by former NSA contractor Edward Snowden.
The bill requires phone companies to keep records for up to 18 months and allow the NSA to access to those records in terror investigations when in possession of a court order.
Some activists say the bill doesn't go far enough to protect everyday Americans from government spying.