This does seem to violate the spirit of bankruptcy law as well as basic economics (presumably student loans consist of and are repaid with the same dollars that are used for other loans or unsecured debt) and has almost certainly helped universities raise tuition with impunity for decades while student loan debt has ballooned to more than $1T in the US.