Wall Street’s biggest banks have agreed to a tentative settlement over allegations that they conspired to rig the market for credit derivatives.

Twelve banks and two industry groups reached the preliminary agreement with plaintiffs in a civil lawsuit to pay $1.87 billion to settle the accusations, a milestone stemming from long-running probes...