Not possible in the way you think. First of all he wasn't being sued over student loan forgiveness the government was, generally speaking you can't sue the president.
Second the supreme court ruling is about criminal liability, that is/was a civil case.
And lastly of the 400 billion in student loan debt that order would have forgiven the Biden administration has managed to claw back something like 170 billion in loan forgiveness through other means.