The victory for borrowers follows recent legal setbacks over other federal student loan forgiveness initiatives.