Congress passes bill to avert partial shutdown