A federal judge has ruled that Education Secretary Betsy DeVos' delay of a key student borrower protection rule was improper and unlawful.

"This is such an important win for student borrowers and anyone who cares about a government that operates under the rule of law," says Toby Merrill, of Harvard Law School's Project On Predatory Student Lending.

U.S. District Court Judge Randolph D. Moss sided with consumer advocates, two former students seeking relief from their loans, and Democratic attorneys general from 19 states and the District of Columbia, who challenged the Trump administration's postponement of Obama-era regulations governing "borrower defense to repayment."

If you attend a school that misled you or engaged in other misconduct, "borrower defense" is the process of seeking relief from your outstanding student loans. The rule was created in the mid-1990s, but remained obscure, producing very few claims, until the collapse of the for-profit Corinthian Colleges and ITT Tech. That's when the Obama administration updated and clarified how students were supposed to seek loan forgiveness. Since then, a reported 165,000 claims have been brought; almost all of them pertain to for-profit colleges.

Since June 2017, DeVos has taken several actions to delay the Obama-era rule. The department has used that time to restart the rulemaking clock, and rewrite borrower defense to make it tougher for students to seek and receive debt relief. In particular, they introduced the idea that some students should only get some of their loans forgiven, depending on their current income. In the meantime, claims are being reviewed under the old, mid-'90s rule.

The judge ruled that DeVos' delay was "unlawful" and "arbitrary and capricious." With respect to the student plaintiffs, the judge found that the department's actions: "have deprived" them "of several concrete benefits that they would have otherwise accrued under the Borrower Defense Regulations."

The judge will decide how the Education Department should proceed after a hearing on Friday. The court may order that the Obama rule take effect immediately, says Merrill. The Department of Education did not immediately respond to request for comment by NPR.

Copyright 2018 NPR. To see more, visit http://www.npr.org/.