Democrats scramble to avert government shutdown