The deal aims to avoid further escalation involving Turkey and Russia in Syria’s Idlib province.