The new order tried to address court concerns by removing a preference for refugees who are religious minorities and giving exemptions from the ban to green-card holders and those who already have valid visas.