In an executive order that he said was part of an extreme vetting plan to keep out “radical Islamic terrorists,” Mr. Trump also established a religious test for refugees from Muslim nations: He ordered that Christians and others from minority religions be granted priority over Muslims.