Assistant U.S. Attorney Richard Elias was leafing through a pile of J.P. Morgan Chase & Co. documents while tending to his newborn son in 2012 when he found something that came back to haunt the three largest U.S. banks.

In a memo, one J.P. Morgan employee warned her bosses they were putting bad loans into securities being created before the financial crisis hit.

The...