President Donald Trump said Thursday he would order the immediate payment of TSA agents as Congress struggles to end a 41-day funding shutdown that has snarled airports, left workers unpaid and forced officials to consider emergency measures, including shifting money or invoking a national emergency.