Sallie Mae on Monday said it agreed to drop its lawsuit against a group of investors that backed out of buying the student lender and received a commitment from seven banks to refinance $31 billion worth of its debt.

In dismissing the suit, Sallie Mae will part with an effort to obtain a $900 million breakup fee from the investment group led by private-equity firm J.C. Flowers & Co.