US House approves bill to avert midnight shutdown