Many of the institutions that received the Fed payments were owed money by A.I.G. because they had bought its derivatives, known as credit-default swaps — in essence, a type of insurance ...