Scramble to avert partial shutdown