A federal judge in Boston on Monday struck down a Homeland Security rule limiting most foreign students' stays to four years, Fox News and The Harvard Crimson report. The judge said the department overstepped its authority. Students would have had to apply to stay longer.

Judge F. Dennis Saylor IV had already blocked the rule from taking effect in September, Fox News reports. Monday's ruling went further and struck it down after he found the department broke federal administrative law, Fox says. Saylor was appointed by former President George W. Bush, the outlet notes.

Before the rule, international students had no fixed time limit as long as they stayed enrolled and kept their legal status, Fox reports. The rule would also have limited transfers, changes of program and extra degrees, the outlet says.

He called the rule "arbitrary, capricious, an abuse of discretion, and otherwise not in accordance with law," The Crimson reports.

"Put bluntly, DHS is seeking to prevent or discourage the very activity — providing educational opportunities for foreign students in the United States — that Congress sought to permit and encourage," Saylor wrote, according to Fox News.

The department said fixed stays would let it check more often that students follow the rules, Fox reports. "The performative outrage is incredible," a DHS spokesperson said in comments to Fox News, adding that the crackdown targets fraud.

A group of labor unions and higher education groups brought the lawsuit, the outlets report. Four of the eight groups count Harvard or its affiliates as members, The Crimson says. Miriam Feldblum, president of the Presidents' Alliance on Higher Education and Immigration, called it a "clear and important victory" for international students, The Crimson reports.

It is not clear whether the department will appeal, Fox News reports. The department did not respond to The Crimson's request for comment, the paper says.

What we know: A federal judge struck down the four-year limit on international student stays, so the old rules stay in place for now. What we don't know: Whether the Homeland Security Department will appeal the ruling.