Following allegations that federal investigators had gone too far in their move against the Associated Press, a spokesman said President Barack Obama had contacted lawmakers to ask that the bill be brought forward.
"The president has long supported media shield legislation in the Senate during the 2008 campaign and as president," White House press secretary Jay Carney said, adding that Obama had spoken to Senator Charles Schumer to press his support for the bill.
This week's revelation that investigators probing alleged leaks of secret or classified information had secretly obtained phone records for numbers used by Associated Press reporters triggered a political firestorm.
Several commentators and a coalition of media organisations accused Obama's administration of trampling on press freedoms in its pursuit of government leaks and whistleblowers.
But Carney insisted that the White House was not involved in the Justice Department investigation that acted against the AP, and protested that Obama supports laws that would protect the identity of press sources.