WASHINGTON (AP) — Congress has sent legislation to the president reviving and remaking a disputed post-9/11 surveillance program two days after letting it temporarily expire.

The vote in the Senate Tuesday was 67-32. The House already has passed the bill, and President Barack Obama plans to sign it quickly.

The legislation will phase out, over six months, the once-secret National Security Agency bulk phone records collection program made public two years ago by agency contractor Edward Snowden.

It will be replaced by a program that keeps the records with phone companies but allows the government to search them with a warrant.

Senate Republican leaders opposed the House bill but were forced to accept it unchanged after senators rejected last-ditch attempts to amend it.

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

More From News Talk 96.5 KPEL