US Congress passes bill to avert partial government shutdown