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
EPA stiffens rules on smog emissions Ex-Im Bank revival pushed, as GOP remains divided Egypt pledges fast work in search for Nefertiti’s tomb McCarthy comments on Benghazi a gift to Hillary Clinton Flash-flood warnings as East Coast braces for hurricane Vegas casino dealers charged with skimming $1 million NASA releases best photos yet of Pluto’s jumbo moon, Charon Man pleads guilty in killing of two American Indians
Our new comment system is not supported in IE 7. Please upgrade your browser here.