President Trump on Sunday issued a new order indefinitely banning almost all travel to the United States from seven countries, including most of the nations covered by his original travel ban, citing threats to national security posed by letting their citizens into the country. The new order is more far-reaching than the president’s original travel ban, imposing permanent restrictions on travel, rather than the 90-day suspension that Mr. Trump authorized soon after taking office. But officials said his new action was the result of a deliberative, rigorous examination of security risks that was designed to avoid the chaotic rollout of his first ban. And the addition of non-Muslim countries could address the legal attacks on earlier travel restrictions as discrimination based on religion.