Fifty states attorneys general, including Connecticut and the attorney general in Washington, D.C., announced Monday morning that they had reached an $86.3 million settlement with Dallas, Texas-based Nationstar Mortgage to resolve allegations the company violated numerous consumer protection laws.

An investigation by the states revealed the company, which does business as Mr. Cooper Group Inc., had ongoing problems with thousands of borrowers when their loans were transferred to Nationstar, the country’s fourth-largest mortgage servicer.