The dramatic extraction resolved a crisis for U.S. President Donald Trump with the war on Iran in its sixth week.