Huawei and Samsung settle legal battle