US President Donald Trump ordered the Pentagon to withdraw nearly all of the hundreds of American troops deployed to Somalia, which is part of a global pullback by the outgoing president that will also see him draw down forces in Afghanistan and Iraq.