Sallie Mae, the largest U.S. student-loan company, has agreed to a $25 billion buyout involving a pair of private-investment funds, JPMorgan Chase and Bank of America. In the past several weeks, the entire student-loan industry has been under fire for improper relationships with college financial-aid offices.