Yes, the government bailout of AIG went towards paying off their counterparties. But those were actual debts that AIG owed because of their own stupidity and greed. Had AIG gone bankrupt instead, the counterparties would not have received anywhere near full payment, and there's a compelling case to be made that that's how it should have been. But this idea that AIG somehow got screwed by having to pay off their shitty bets with our money is laughable and disgusting. If the shareholders want to sue someone, it should be their own board.
Also, I got my analogy wrong. It would be more like if the Government seized 92% of your house in exchange for loaning you the money to pay off the scammer with interest, which they knew you could repay.
Even after the massive swindle, AIG's problem was liquidity and not insolvency - they had enough assets to repay everyone and if they'd actually gone bankrupt, the shareholders may well have come out better in the end, but their counterparties would've been screwed because they'd have had to have waited for the bankrupcy proceedings to get paid.
If the government were a payday loan shop and gouging thousands of independent companies everyday, your analogy would hold water. Till then, this is merely a straw-man argument.
To continue the metaphor, it's like if a guy conned your family out of their life savings, and then the Government generously seized your home in exchange for paying the guy who scammed you the rest of the money you owed him which you couldn't afford to pay.
Edit: see, for instance, http://www.huffingtonpost.com/david-fiderer/the-cdos-that-de...