US Congress passes bill to avert shutdown