The US Congress is battling a tight deadline to avert a fast-approaching government shutdown after a Donald Trump-backed bill failed to get enough support.