US lawmakers scramble to avert government shutdown