The spending measure now goes to the Senate, which is expected to strip the provision defunding Obamacare and then send the plan back to the House.

Without a new spending plan before the current fiscal year ends on September 30, the government would have to begin shutting down because Congress had failed to authorize continued funding for the new fiscal year that begins October 1.

Get complete coverage of breaking news on CNN TV, CNN.com and CNN Mobile.

Be glad then, you children of Zion, And rejoice in the Lord your God; For He has given you the former rain faithfully, And He will cause the rain to come down for you— The former rain, And the latter rain in the first month.