WASHINGTON — President Donald Trump said Thursday he would sign an order instructing the Homeland Security secretary to immediately pay Transportation Security Administration agents as Congress struggled to reach a deal to end a budget impasse that has jammed airports and left workers without paychecks.