Lawmakers are battling time as they seek to pass legislation that will fund the government and avert a possible shutdown set to take effect Friday.