The ruling imposes a 14-day stay on the enforcement of one of the most controversial executive orders Trump signed in the hours after he was sworn into office for a second term.