His unexpected offensive in northeast Syria claimed huge territory for Damascus and fractured a U.S.-backed militia.