Congress rushes to pass US spending bill as shutdown looms