A $5.1 billion settlement with state and federal regulators offers Goldman Sachs Group Inc. some closure over its role in the 2008 financial crisis. But the deal promises something more tangible to Kellogg Huber Hansen Todd Evans & Figel and Korein Tillery, which may be in line to collect a hefty contingency fee for helping the National Credit Union Administration take on Goldman in court.

Goldman, represented by Sullivan & Cromwell’s Richard Klapper, agreed to pay $575 million to the NCUA as part of a broader set of settlements announced Monday, which the U.S. Department of Justice said would resolve a slew of U.S. state and federal enforcement actions stemming from the Wall Street bank’s part in the mortgage meltdown.