The U.S. president’s comments are likely to spur concerns on the administration’s endgame with the conflict.