US Democrats prepared legislation on Wednesday to avert a government shutdown this week, but they were desperately trying to salvage Joe Biden’s domestic agenda as conservative-leaning holdouts dug in against an ambitious $3.5 trillion social safety net and climate bill that carries many of the party’s top priorities.