Lending data showed, for example, that in 2007 customers in the Chicago area who borrowed $300,000 from Wells Fargo through an independent broker had paid an average of $2,937 more in broker fees if African-American, and $2,187 more if Hispanic, compared with white borrowers with a similar credit risk, the complaint said.

Similarly, it said, the data showed that nationwide, an African-American borrower who had qualified for a regular loan was 2.9 times more likely to be steered into a subprime loan, and a Hispanic borrower was 1.8 times more likely, than were similarly creditworthy white borrowers. Subprime loans, which are intended for riskier borrowers, carry higher interest rates.

Wells Fargo was also facing lawsuits by several entities beyond the Justice Department, including the city of Baltimore, the state of Illinois and the Pennsylvania Human Rights Commission. It settled with all of them as part of the deal, putting to rest its fair-lending cases from the bubble years.

The focus of the settlement is Wells Fargo’s failure to police the behavior of its independent loan brokers. The complaint said that the bank had set basic credit guidelines but then had allowed the brokers discretion to charge higher rates or steer people into less attractive loans without ensuring there was no discrimination based on race or national origin

Wells Fargo and the Justice Department were unable to agree on whether the data had showed any evidence of discrimination in the lending practices of the bank’s in-house “retail” mortgage agents. Instead, they agreed to a methodology to evaluate that data further. If it finds evidence of discrimination, the victims would receive similar compensation on top of the $175 million Wells Fargo has already agreed to pay.

Under federal civil rights laws, a lending practice is illegal if it has a disparate impact on minority borrowers, even without evidence of discriminatory intent.

During the housing boom, Wall Street firms developed a huge demand for subprime loans that they purchased and bundled into securities for sale to investors, creating financial incentives for lenders to make such loans. In early 2010, the Obama administration set up a unit in the civil rights division to focus on lending bias amid the fallout from the wave of foreclosures that had set off the financial crisis.

In December, the division settled a similar lawsuit with Bank of America for $335 million over loan discrimination by its Countrywide Financial unit. In May, SunTrust Mortgage agreed to pay $21 million in a similar case.