In December, Meng Wanzhou, the daughter of Huawei’s founder and the chief financial officer of the company, was detained in Canada at the behest of the United States, which is seeking to extradite her.

Her father, Ren Zhengfei, the company’s founder, has since rejected the claims against his daughter and said that he would wait to see if President Trump would intervene in the case. Ms. Meng has been in court this week in Vancouver, British Columbia, as part of an extradition hearing.

In the meantime, Huawei has battled against many of its customers and nations that have said they would pull back from buying its products. China has also retaliated against Canada by detaining several Canadian citizens. This week, Canadian officials also complained that China had begun to suspend the import of canola from the country.

Lu Kang, the spokesman for China’s Ministry of Foreign Affairs, said on Thursday that the Chinese decision was based on the discovery of pests in Canadian canola.

China has a long history of interrupting trade with other countries in the middle of diplomatic spats. In September 2010, China halted the export of rare earth metals to Japan for two months during a dispute over the sovereignty of a cluster of tiny islands between Japan and Taiwan. Weeks later, China suspended trade talks with Norway and then halted the import of Norwegian salmon after the Nobel Peace Prize was awarded to a Chinese dissident by a Norwegian committee.

Huawei’s lawsuit argues that by singling out the company, Congress has violated constitutional principles on the separation of powers and also the bill of attainder clause, which prohibits legislation that singles out a person or entity for punishment without trial.

“The actual and intended effect of these prohibitions is to bar Huawei from significant segments of the U.S. market for telecommunications equipment and services, thereby inflicting immediate and ongoing economic, competitive, and reputational harms on Huawei,” the company’s lawyers wrote in the suit.