WASHINGTON — Leaders of both parties in the House of Representatives, at the Obama administration’s request, have changed a surveillance overhaul bill that restricts the power of the government to obtain Americans’ records in bulk.

A revised version of the bill was unveiled on Tuesday, and the House may vote on it this week.

Several civil liberties groups that had backed a previous version argued that the changes weakened the limits in a way that leaves the door open for the government to obtain enormous volumes of records. They said they were withdrawing their support.

Lawmakers drafted the bill, the U.S.A. Freedom Act, in response to the revelation that the National Security Agency is obtaining classified court orders to systematically gather logs of Americans’ phone calls. A previous version of the bill unanimously passed the House Judiciary and Intelligence Committees. But the administration asked for changes before the House Rules Committee approved sending it to the House floor.

The request set off an intense bout of closed-door negotiations between leading lawmakers of both parties and executive branch officials led by Robert S. Litt, the general counsel for the Office of the Director of National Intelligence, congressional aides said. The talks stretched to midnight on Monday and resumed Tuesday morning.