President Trump’s announcement came as talks on Capitol Hill over funding the Department of Homeland Security faltered, and airport lines continued to grow.