With barely two days before the US government runs out of money, and President Donald Trump feuding with Democrats over immigration, Republican congressional leaders scrambled Wednesday to avoid an embarrassing federal shutdown.