The clashes between militias of the Druze religious minority and Sunni Muslim groups killed hundreds and threatened to unravel Syria’s fragile postwar transition.