Chinese telecommunications giant Huawei Technologies Co Ltd filed a lawsuit against the United States late Wednesday, alleging that it acted illegally by enacting a law that forbids the government from doing business with companies that use Huawei equipment as a "substantial or essential component" of their system.