The Pentagon said on Friday that President Donald Trump had ordered most U.S. military forces to leave Somalia by early 2021.