The vote was 227-183.
As the Washington Post reports:
Privacy and civil liberties advocates, and many Democratic lawmakers, complained that the Bush administration's revisions of the law could breach constitutional protections against government intrusion. But the administration, aided by Republican congressional leaders, suggested that a failure to approve the legislation sought by intelligence officials could expose the country to a greater risk of terrorist attacks.
Democrats facing reelection next year in conservative districts helped propel the bill to a quick approval. Adding to the pressures they felt were recent intelligence reports about threatening new al-Qaeda activities in Pakistan and the disclosure by House Minority Leader John A. Boehner (R-Ohio) of a secret court ruling earlier this year that complicated the wiretapping of purely foreign communications that happen to pass through communications nodes on U.S. soil.
The bill would give the National Security Agency the right to collect such communications in the future without a warrant. But it goes further than that: It also would allow the monitoring, under certain conditions, of electronic communications between people on U.S. soil, including U.S. citizens, and people "reasonably believed to be outside the United States," without a court's order or oversight.