WASHINGTON (AP) — A $1.1 trillion spending bill is on its way to President Barack Obama for his signature.

The Senate voted 56-40 on Saturday for the long-term funding bill, the main item left on Congress’ year-end agenda. The measure provides money for nearly the entire government through the Sept. 30 end of the current budget year.

READ MORE: Maryland Weather: A Brief Thaw Wednesday Before Snow Moves In

The sole exception is the Department of Homeland Security, which is funded only until Feb. 27. Republicans intend to try then to force the president to roll back a new immigration policy that removes the threat of deportation from millions of immigrants living in the country illegally.

READ MORE: Ovechkin Scores 27th Goal, Capitals Beat Jets In Overtime

The compromise bill had faced opposition from Democratic liberals upset about the repeal of a banking regulation and Republican conservatives unhappy that it failed to challenge Obama’s immigration moves.

MORE NEWS: Michigan Gets First Win In A Month, Slams Maryland 83-64

(Copyright 2014 by The Associated Press. All Rights Reserved.)