The bill now heads to a Senate where lawmakers face a tougher task in extending government funding