With Bank of America Corp.’s $16.65 billion settlement announcement Thursday over the marketing and sale of subpar residential mortgage-backed securities, prosecutors have closed out the largest remaining government enforcement actions stemming from the financial crisis.

The tailing off of the government’s actions promises to affect a swath of top-tier Wall Street firms, where the investigations and litigation have generated enormous revenues for the past two years.