Former President Trump blasted President Biden's failed student loan forgiveness plan Friday, calling him "crooked" while celebrating a favorable Supreme Court decision in Biden v. Arkansas.

Trump addressed an enthusiastic crowd at the Moms for Liberty Joyful Warriors National Summit in Philadelphia. During his speech, he vilified Biden's student loan forgiveness plan, which would have forgiven upwards of $10,000 per federal loan borrower.

Earlier Friday, the Supreme Court ruled that Biden's student loan forgiveness plan was unconstitutional.

The plan would have canceled debt for borrowers making less than $125,000 a year. Pell Grant recipients would have been granted up to $20,000 in forgiveness.

BIDEN SAYS SCOTUS 'MISINTERPRETED THE CONSTITUTION' AFTER BLOCKING STUDENT LOAN HANDOUT, HITS REPUBLICANS

Trump speaking

Republican presidential candidate former U.S. President Donald Trump speaks during the Moms for Liberty Joyful Warriors national summit at the Philadelphia Marriott Downtown on June 30, 2023 in Philadelphia, Pennsylvania. (Michael M. Santiago/Getty Images)

"[It] would have been very unfair to the millions and millions of people who paid their debt through hard work and diligence," Trump said during his speech. "Very unfair."

"We have a corrupt president. Very corrupt," the former president added. "But this was a way of trying to buy votes."

The Supreme Court's majority opinion discredited the notion that the HEROES Act would authorize loan forgiveness, dealing a significant blow to the Biden administration.

"The Secretary’s plan canceled roughly $430 billion of federal student loan balances, completely erasing the debts of 20 million borrowers and lowering the median amount owed by the other 23 million from $29,400 to $13,600," Chief Justice John Roberts wrote for the 6-3 majority. 

SUPREME COURT RULES AGAINST BIDEN STUDENT LOAN DEBT HANDOUT

Supreme Court exteriors

A general view of the U.S. Supreme Court, Friday, June 23, 2023, in Washington, D.C. (AP Photo/Mariam Zuhaib)

"Six States sued, arguing that the HEROES Act does not authorize the loan cancelation plan. We agree," the justice added.

Trump also alluded to the 303 Creative LLC. v. Elenis decision, which gave a Christian web designer the right to deny services to same-sex couples.

"They also gave religious liberty, as you know…a tremendous win. Religious liberty got a tremendous win today," the former president said.

CLICK HERE TO GET THE FOX NEWS APP

President Joe Biden speaking with reporters

President Joe Biden speaks with members of the media before boarding Marine One on the South Lawn of the White House in Washington, Wednesday, June 28, 2023, for a short trip to Andrews Air Force Base, Md., and then on to Chicago.  (AP Photo/Andrew Harnik)

Fox News Digital reached out to the White House for a statement, but did not receive a response.