It would also be given the authority to wind down troubled financial institutions -- such as insurance giant American International Group -- in a similar fashion to the way the Federal Deposit Insurance Corp. takes over failed banks .