Shareholders of SLM Corp., commonly known as Sallie Mae, on Wednesday approved a private-equity firm’s $25 billion buyout of the nation’s largest student lender.

Shareholder approval had been expected. It came in a vote at a special meeting at the company’s headquarters in Reston, Va.