The House passed a spending bill that cut all funding from the president's healthcare law while keeping the government running through mid-December.