Federal officials heap much of the blame for the subprime mortgage mess on lenders, claiming they recklessly made too many high-cost home loans to borrowers who couldn't afford them.

It turns out that the U.S. government itself was one of the lenders giving out high-interest, subprime mortgages, some of them predatory, according to government documents filed in federal court.

The...