The bill was approved 366-34, and now goes to the Senate, for expected quick passage, which would avert a shutdown.