NEW YORK - A federal district court on Monday struck down a U.S. government move to shorten the duration of visas for foreign students and journalists, dealing a setback to efforts by President Donald Trump's administration to tighten immigration rules.

File photo shows the Statue of Liberty over a wind blown American flag scarf on Liberty Island in July 2020 in New York City. (Getty/Kyodo)

The Department of Homeland Security had said in a July notice that, effective Sept. 15, holders of the student and exchange visas would be restricted to a stay of up to four years in principle, while journalist visas would not exceed 240 days, with Chinese nationals in this category limited to 90 days on U.S. soil.

A day before the notice was set to take effect, the federal District Court in Massachusetts granted an injunction over the move pending the resolution of the case on the merits.

The court on Monday deemed the department's rule change "arbitrary, capricious, an abuse of discretion and otherwise not in accordance with law."

In the decision, the court said the Department of Homeland Security failed to consider less burdensome alternatives, specifically tools already available under the existing Student and Exchange Visitor Information System, which tracks international students.

The court ruled that the underlying statute did not grant the department broad authority to undermine a visa program meant to provide educational opportunities for foreign students in the country.

The department "should have carefully weighed the costs and benefits of enhancements to the SEVIS system against the immense costs and limited benefits" of the new rule, "which it failed to do," the court added.

The department's new rules would have applied to F visas for international students, J visas for visitors allowed to participate in exchange programs and I visas for members of the media.

In announcing the notice this summer, the department claimed that thousands of foreign students had abused the U.S. immigration system, and argued that it needed a better way to assess whether foreign students and other nonimmigrants presented national security concerns.

"By implementing clear, finite limits on these visas, the United States is reclaiming its ability to properly screen, vet and monitor individuals within our borders," Homeland Security Secretary Markwayne Mullin said in a statement at the time.

Education and labor groups sued the department and others in August, asking the court to find the new rules unlawful and vacate them.

Related coverage: