Syria's government has reached a deal with the Kurdish-led Syrian Democratic Forces (SDF) militia alliance that would see the gradual intergration of Kurdish forces and institutions into the state.