Declaration of ISIL defeat in Syria and pulling out of troops angers top Republicans and surprises some foreign allies.