Democratic Sen. Max Baucus, the Senate Finance Committee Chairman, confirmed the agreement to Fox News late Wednesday, capping a long day of wrangling over the final details of the measure. The lawmakers met their goal of getting the agreement out by midnight so it can get on the House floor by Friday. The $150 billion measure represents a tactical retreat for Republicans, who were generally unenthusiastic about the legislation but eager to move beyond the issue. With the campaign season starting, they don't want Obama and Democrats in Congress to be able to claim that the GOP was standing in the way of a middle-class tax cut. It represented a rare burst of bi-partisanship in a bitterly divided Congress. The legislation would continue a 2 percentage-point cut in the Social Security payroll tax, renew jobless benefits averaging about $300 a week for people languishing for long periods on unemployment rolls and protect doctors from a huge cut in their Medicare reimbursements. The measure carries a price tag of roughly $150 billion over the coming year, partly financed by new auctions of telecommunications spectrum to wireless companies and by requiring newly-hired federal workers to contribute more toward their pensions. The pension provision was watered down from a version sought by House Republicans, and tentatively agreed to by key Democrats, that would have required current federal workers to contribute more to their defined benefit pensions. Auctions of portions of the nation's airwaves to wireless companies would net another $15 billion or so -- even after $7 billion is set aside to construct and run a new public safety network for emergency first responders. Extending the payroll tax cut and renewing long-term jobless benefits were key planks in Obama's jobs program, which was announced last September but has been largely ignored since. The measures are intended to help the economy by giving people more money to spend, fattening a typical bimonthly paycheck by $40 or so and giving the unemployed critical cash that most of them turn around and spend immediately. The measure also includes a key adjustment to the badly broken Medicare payment formula for doctors, which would otherwise impose a 27 percent cut on March 1 under a 1997 budget law. The $20 billion cost would be covered in part by cuts to a fund created under Obama's health care law that awards grants for preventive care and by curbs on Medicaid payments to hospitals that care for a disproportionate share of uninsured patients. House Speaker John Boehner, R-Ohio, said the legislation would probably be voted on by the end of the week. GOP leaders had jump-started the talks over the weekend by dropping a demand that the tax cut be paid for with spending cuts. On Monday, Republicans upped the ante by threatening to advance the payroll tax cut on its own -- and leave jobless benefits and the Medicare fix behind, which set off alarms with Democratic lawmakers and at the White House. "We were not going to allow the Democrats to continue to play political games and raise taxes on working Americans," Boehner told reporters. We made the decision to bring them to the table so that the games would stop and we would get this work done. Some rank-and-file Republicans continued to grumble that the measure was flawed and that the payroll tax cut, first enacted in December of 2010, has done little to prop up the economy. But the prevailing instinct among Republicans was political survival and not wanting to look like they were getting in the way of an election-year tax cut. "Not going to do this again, but if it gets us through the year, gets this issue off the table, it's worth doing this way," said Sen. Lindsey Graham, R-S.C. The final snag, aides said, had involved a spat over new auctions of wireless spectrum, a key provision required to help defray the $30 billion cost of extending jobless benefits. House Republicans moved in the Democrats' direction on the amount of money dedicated to creating the public safety communications network for first responders. Republicans claimed victory in reducing the number of weeks of jobless benefits that workers would be eligible to receive. The maximum number in states with the highest jobless rates would be cut from 99 weeks to 73 weeks by the end of the year, according to aides in both parties. But in states with particularly high unemployment, such as Rhode Island and Nevada, the measure is actually more generous over the next few months than current law. Negotiators also dropped House-passed language that would have forced low-income people to have Social Security numbers in order to get government checks by claiming the children's tax credit, a move that was aimed at illegal immigrants and caused a furor among many Hispanics. Republicans also dropped a proposal requiring unemployed people to seek high school equivalency degrees to obtain benefits. But a GOP provision requiring jobless people to be more diligent in job searches as a condition of receiving benefits was included. The measure also would prevent welfare recipients from using their electronic benefits cards to withdraw money at ATMs in strip clubs, casinos and liquor stores.