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
Zimbabwe will seek lion-killing dentistís extradition Women advance to final phase of Army Ranger School Virginia may recall Confederate license plates Al-Qaida captures leader of U.S.-backed Syrian rebels George McGovern revealed he had a secret child California cuts water use by 27 percent Pentagon OKs guns to protect stateside troops Blue moon? Celestial event comes with a catch
Our new comment system is not supported in IE 7. Please upgrade your browser here.