Vladimir Putin bet on Bashar al-Assad’s murderous rule. Now Russia is shifting course.