More than a decade after the mortgage crisis blew a hole in the United States economy, banks and prosecutors are still sorting out the tab for the damage.

The latest reckoning came on Thursday, when Morgan Stanley agreed to pay $150 million to settle claims by the State of California that it misled investors about the risks of mortgage-backed securities sold to two state pension funds for teachers and public employees.

The case was the last remaining government lawsuit against the bank over issues related to the financial crisis, according to Mark Lake, a spokesman for Morgan Stanley. In the agreement, which included no admission of wrongdoing, Morgan Stanley denied the state’s accusations.

Banks have paid more than $240 billion in fines and penalties for their actions during the crisis, according to a tally kept by the investment bank Keefe, Bruyette & Woods.