The Syrian regime said it would send allied militias into the contested canton of Afrin, part of a deal that will help defend the Kurdish enclave from Turkey but would be a major blow to Kurdish aspirations for an autonomous region.