Syria’s central government has reached a deal with the Kurdish-led authority that controls the country’s north east, including a ceasefire and the merging of the main US-backed force there into the Syrian army.