Freddie Mac said Monday that it had agreed to pay $4.65 million to settle a class action lawsuit related to both its employee 401(k) plan and its accounting scandal, a move the company said also closes a separate investigation by the Labor Department.

The lawsuit alleged the mortgage finance company had violated the Employee Retirement Income Security Act because the people running the Thrift/401(k) savings plan failed to give complete and accurate information to participants in the program and failed to manage the fund properly.