Two of the largest mortgage servicers in the U.S. reached a combined $217 million settlement in Miami federal court over a national homeowner insurance scandal.

Ocwen Loan Servicing LLC and Nationstar Mortgage faced class action lawsuits covering more than 1 million homeowners suing over insurance policies the servicers and lenders placed on their properties.