The president has made it clear that we are there [Syria] until the ISIS territorial caliphate is removed AND as long as the Iranian menace continues throughout the Middle East.

Source here