Boehner had sought to avoid the shutdown and engineer passage of a "clean" temporary spending bill for averting a government shutdown.
This time tea party activists mobilized by freshman Sen. Ted Cruz, R-Texas, mounted a campaign to seize the must-do measure in an effort to derail Obamacare. GOP leaders voiced reservations and many Republican lawmakers predicted it wouldn't work. Some even labeled it "stupid."
But the success of Cruz and other tea party-endorsed conservatives who upset establishment GOP candidates in 2010 and 2012 primaries was a lesson learned for many Republican lawmakers going into next year's election.
Associated Press writer Lolita C. Baldor in Seoul, South Korea, contributed to this report.