Congress passes bill to avert government shutdown