The revised ban was issued more than a week ahead of its implementation in part to avoid the chaos after the first order, with travelers including permanent residents saying they had been detained at airports across the country.