Whether the Fed (and/or the Treasury) acted unlawfully depends on whether the transaction with AIG falls within the statute that authorizes the Fed to make loans to non-banks during emergencies. It is clear that the transaction mixes elements of debt and equity. The Fed probably will get the residual value of AIG