After the Islamic State falls: America’s next president will face the war’s toughest decisions