The U.S. military has transported an American who was imprisoned in Syria for seven months out of the country.