The pullout opens the way for a Turkish operation in northern Syria, angering Kurdish forces there.