The unanimous voice vote Monday sends the legislation to the White House for President Barack Obama's signature.
The development came with just hours before a shutdown deadline at midnight. During a shutdown, essential federal employees are expected to report for duty but face delays in receiving their pay.
Now, if the government really does shut down, members of the armed forces will receive their paychecks on time but civilian workers won't.
The House passed the legislation early Sunday morning.
More Nation & World Headlines
Votes now in hand for Obama victory on Iran deal 7:53 a.m. Pope’s decree on abortion may signal change in tone, not practice Home detention for white police chief who shot black man Missouri executes man for 15-year-old girl’s 1989 killing Obese at 50? Midlife weight may affect when Alzheimer’s hits Police in Georgia responding to wrong house shoot dog, homeowner Bush-Trump dispute intensifies, Bush hitting back harder California to end unlimited isolation for most gang leaders
Our new comment system is not supported in IE 7. Please upgrade your browser here.