President Assad’s forces move towards border towns after reaching a deal with Kurdish forces.