Congress appears to have averted an imminent government shutdown, striking a $1 trillion deal to fund the federal government through next September.

Both the House and Senate are expected to vote on the giant spending bill on Friday, ahead of the midnight deadline when stop-gap funding for government operations runs out.

But congressional leaders and the White House are still laboring over a plan to extend payroll tax cuts and long-term unemployment insurance, set to expire on Dec. 31. All sides say they want to reach a deal on these measures, but they split on partisan lines over how to pay for it.