The White House is nearing an agreement with Congress on legislation that would write President Bush’s warrantless surveillance program into law, the Senate Judiciary Committee chairman said Sunday.

Bush and senior officials in his administration have said they did not think changes were needed to empower the National Security Agency to eavesdrop — without court approval — on communications between people in the U.S. and overseas when terrorism is suspected.