President Trump has declared victory over the so-called Islamic State and has ordered the withdrawal of U.S. troops from Syria, but his sharp reversal of foreign policy appears to have taken the Pentagon by surprise, triggered criticism from political friends and foes and left America's Kurdish allies all alone.