John Kerry, who served as secretary of state, in Washington last month. Mr. Kerry and other prominent Democrats wrote a letter saying that President Trump’s order “ultimately undermines the national security of the United States, rather than making us safer.”