Kurdish forces agree to merge with Syrian state, easing tensions