A federal judge in Texas on Tuesday rejected a constitutional challenge by Huawei Technologies, the Chinese telecommunications equipment maker, to a U.S. law that restricted its ability to do business with federal agencies and their contractors.

In a 57-page decision, U.S. District Judge Amos Mazzant ruled in favor of the United States, concluding that Congress acted within its powers by including the restriction in the National Defense Authorization Act, which also targeted ZTE Corporation, another Chinese company.

A Huawei spokesman said the company was disappointed in the loss.

“While we understand the paramount significance of national security, the approach taken by the U.S. government in the 2019 NDAA provides a false sense of protection while undermining Huawei’s constitutional rights. We will continue to consider further legal options,” the spokesman said.

The government was pleased with the ruling, a Justice Department spokesman said.

The decision comes as the United States has a wide-ranging effort underway to prevent Huawei technology from being used in sensitive telecommunications equipment in the United States or elsewhere. Earlier this week, the government charged Huawei and two of its subsidiaries with federal racketeering and conspiracy to steal trade secrets from American companies. Huawei has denied the allegations and said it expects it will be exonerated.