The shutdown caused chaos in airports across the US as politicians feuded over funds for Trump's immigration crackdown.