Huawei executive loses key court battle