The US House and Senate have passed a governement funding bill that will prevent a government shutdown.