US has brought sweeping charges against Huawei that portray the company as a threat to national security.