Goldman Sachs Group Inc. played a bigger role than has been publicly disclosed in fueling the mortgage bets that nearly felled American International Group Inc.

Goldman was one of 16 banks paid off when the U.S. government last year spent billions closing out soured trades that AIG made with the financial firms.

A Wall Street Journal analysis...