WASHINGTON, DC - JANUARY 17:  Betsy DeVos, President-elect Donald Trump's pick to be the next Secretary of Education, testifies during her confirmation hearing before the Senate Health, Education, Labor and Pensions Committee in the Dirksen Senate Office Building on Capitol Hill  January 17, 2017 in Washington, DC. DeVos is known for her advocacy of school choice and education voucher programs and is a long-time leader of the Republican Party in Michigan.  (Photo by Chip Somodevilla/Getty Images)
Chip Somodevilla/Getty Images North America/Getty Images
WASHINGTON, DC - JANUARY 17: Betsy DeVos, President-elect Donald Trump's pick to be the next Secretary of Education, testifies during her confirmation hearing before the Senate Health, Education, Labor and Pensions Committee in the Dirksen Senate Office Building on Capitol Hill January 17, 2017 in Washington, DC. DeVos is known for her advocacy of school choice and education voucher programs and is a long-time leader of the Republican Party in Michigan. (Photo by Chip Somodevilla/Getty Images)
Now playing
02:07
Betsy DeVos' controversial statements (2018)
SEN Appropriations Subcmte Hearing on Dept of Ed Budget, Betsy DeVos Testifies  LABOR, HEALTH AND HUMAN SERVICES, EDUCATION, AND RELATED AGENCIES SUBCOMMITTEE (Roy Blunt, Chairman)  Hearing to review the Fiscal Year 2019 funding request and budget justification for the U.S. Department of Education  10:15 a.m., Room 124, Dirksen Senate Office Building  Witness: The Honorable Betsy DeVos Secretary U.S. Department of Education
POOL
SEN Appropriations Subcmte Hearing on Dept of Ed Budget, Betsy DeVos Testifies LABOR, HEALTH AND HUMAN SERVICES, EDUCATION, AND RELATED AGENCIES SUBCOMMITTEE (Roy Blunt, Chairman) Hearing to review the Fiscal Year 2019 funding request and budget justification for the U.S. Department of Education 10:15 a.m., Room 124, Dirksen Senate Office Building Witness: The Honorable Betsy DeVos Secretary U.S. Department of Education
Now playing
01:25
DeVos: Won't look at guns to reduce school violence
WASHINGTON, DC - JANUARY 17:  Betsy DeVos, President-elect Donald Trump's pick to be the next Secretary of Education, testifies during her confirmation hearing before the Senate Health, Education, Labor and Pensions Committee in the Dirksen Senate Office Building on Capitol Hill  January 17, 2017 in Washington, DC. DeVos is known for her advocacy of school choice and education voucher programs and is a long-time leader of the Republican Party in Michigan.  (Photo by Chip Somodevilla/Getty Images)
Chip Somodevilla/Getty Images
WASHINGTON, DC - JANUARY 17: Betsy DeVos, President-elect Donald Trump's pick to be the next Secretary of Education, testifies during her confirmation hearing before the Senate Health, Education, Labor and Pensions Committee in the Dirksen Senate Office Building on Capitol Hill January 17, 2017 in Washington, DC. DeVos is known for her advocacy of school choice and education voucher programs and is a long-time leader of the Republican Party in Michigan. (Photo by Chip Somodevilla/Getty Images)
Now playing
00:45
NYT: DeVos dismantles college fraud probes
CORAL SPRINGS, FL - MARCH 07:  U.S. Education Secretary Betsy DeVos speaks to the news during a press conference held at the Heron Bay Marriott about her visit to Marjory Stoneman Douglas High School in Parkland on March 7, 2018 in Coral Springs, Florida.  DeVos was visiting the high school following the February 14 shooting that killed 17 people.  (Photo by Joe Raedle/Getty Images)
Joe Raedle/Getty Images
CORAL SPRINGS, FL - MARCH 07: U.S. Education Secretary Betsy DeVos speaks to the news during a press conference held at the Heron Bay Marriott about her visit to Marjory Stoneman Douglas High School in Parkland on March 7, 2018 in Coral Springs, Florida. DeVos was visiting the high school following the February 14 shooting that killed 17 people. (Photo by Joe Raedle/Getty Images)
Now playing
02:12
Betsy DeVos' competence called into question
WCBS
Now playing
01:01
DeVos: Haven't visited underperforming schools
Education Secretary Betsy DeVos delivers remarks to employees on her first day on the job at the Department of Education February 8, 2017 in Washington, DC. DeVos was confirmed by the Senate after Vice President Mike Pence cast a tie-breaking vote Tuesday.
Chip Somodevilla/Getty Images
Education Secretary Betsy DeVos delivers remarks to employees on her first day on the job at the Department of Education February 8, 2017 in Washington, DC. DeVos was confirmed by the Senate after Vice President Mike Pence cast a tie-breaking vote Tuesday.
Now playing
02:24
DeVos struggles with school safety specifics
Pool
Now playing
01:22
Harvard students taunt Betsy DeVos
CNN
Now playing
01:26
Boos drown out DeVos commencement speech
Betsy DeVos DC school blocked vo_00000000.jpg
WJLA
Betsy DeVos DC school blocked vo_00000000.jpg
Now playing
00:53
Protesters block DeVos from entering school
President-elect Donald Trump and Betsy DeVos after their meeting at Trump International Golf Club, November 19, in Bedminster Township, New Jersey. Trump has offered her the Education Secretary.
Drew Angerer/Getty Images
President-elect Donald Trump and Betsy DeVos after their meeting at Trump International Golf Club, November 19, in Bedminster Township, New Jersey. Trump has offered her the Education Secretary.
Now playing
02:45
Who is Trump's education secretary pick?
betsy devos swear in education secy
betsy devos swear in education secy
Now playing
01:53
Betsy DeVos sworn in as education secretary
Betsy DeVos
CNN
Betsy DeVos
Now playing
01:38
DeVos: Confirmation drama was a bear
Betsy DeVos education secretary senate vote_00003830.jpg
CNN
Betsy DeVos education secretary senate vote_00003830.jpg
Now playing
00:58
Pence breaks tie to confirm DeVos
Betsy DeVos speaks during her confirmation hearing for Secretary of Education before the Senate Health, Education, Labor, and Pensions Committee on Capitol Hill January 17, 2017 in Washington, DC.
BRENDAN SMIALOWSKI/AFP/Getty Images
Betsy DeVos speaks during her confirmation hearing for Secretary of Education before the Senate Health, Education, Labor, and Pensions Committee on Capitol Hill January 17, 2017 in Washington, DC.
Now playing
01:46
Betsy DeVos appears to have plagiarized
CNN
Now playing
00:45
DeVos: Grizzlies can determine school gun laws
(CNN) —  

A federal judge ruled that the Betsy Devos-led Department of Education improperly delayed implementing a rule to give some student loan borrowers relief.

U.S. District Judge Randolph Moss sided with attorneys general from 18 states and the District of Columbia who sued Education Secretary Betsy DeVos after she froze an Obama-era rule known as Borrower Defense to Repayment. The rule is intended to help students receive debt forgiveness if they were cheated by their college.

It was rewritten under the Obama administration in the wake of the collapse of Corinthian College, a for-profit school that misled prospective students with inflated job placement numbers. More than 130,000 borrowers have applied for debt forgiveness since 2015, a majority of whom attended for-profit colleges.

“Today’s decision in federal court is a victory for every family defrauded by a predatory for-profit school and a total rejection of President Trump and Betsy DeVos’s agenda to cheat students and taxpayers,” said Massachusetts Attorney General Maura Healey, who led the coalition.

The rule was due to take effect in July, but DeVos delayed the implementation after a group representing for-profit colleges in California sued the Department of Education seeking to block it from taking effect.

A spokesperson for DeVos said the department is reviewing the ruling.

Moss found the department’s argument for delaying the rule “procedurally defective” and said it “was arbitrary and capricious.” In his 57-page opinion, he wrote that some of the department’s legal rationales “lack any meaningful analysis.”

But the order does not instruct the department to immediately reinstate the rule. Instead, a hearing will be held Friday to discuss remedies.

Under DeVos, the Department of Education has worked on a re-write of the rule, set to go into effect in July 2019. The new version was blasted by consumer groups who said student borrowers would be required to submit more evidence of their school’s misconduct and prove more difficult facts in order to get debt relief.

Department of Education documents show that DeVos’s rewrite could save the government $12.7 billion over a ten-year period compared with the Obama version.

DeVos is rolling back another Obama-era regulation that was designed to withhold funding for for-profit schools and certificate programs that failed to prepare students for “gainful employment.” Together, the two rules were an important part of the Obama administration’s crackdown on for-profit colleges.