In the summer of 2015, Bashar al-Assad was in trouble. Then an Iranian general went to Moscow, and the tide of Syria’s conflict began to change.