Legal experts said a new directive would have a better chance of withstanding courtroom scrutiny if it covered some non-Muslim countries and exempted non-citizen immigrants living in the U.S. legally.