AIG did nothing wrong, this time around that is. The bonuses being paid out are not to their execs, it is to their employees. The bonuses stem from their leveraging of bad debts out of the company, this is a good thing. Anyone who works in any industry where there is some sort of quota number to reach, ie sales, financial, etc, will tell you bonuses are earned through their hard work and what they contributed to the company, in many cases it is just an extension of their salary. The people who are receiving bonuses now are those who freed up some of AIG's troubled assets and due to the contract that was written is what they were promised if they did this. Everything that the media is talking about in regards to AIG is just a trick to keep people from talking about the massive $3.6 trillion budget.
The whole problem comes from congress, namely Barney Frank, who several years ago passed laws and bills to put "low income" families in houses they couldn't afford. Mortgage lenders got tax incentives to participate, then turned around and bundled these bad mortgages to banks like Bank of America, who in turn bundled these to insurance companies like AIG. The root cause of the problem is government, but they fail to admit their mistakes and in turn blame everyone who followed what they told them to do.
If congress does something about these bonuses the employees will quit, they are performance bonuses they did a good job. AIG will have no competent employees and will likely become insolvent. If AIG becomes insolvent then roughly 35-50% of mortgages held in this country will be worthless, which will in turn tank the real estate market worse than anything that has ever happened in American history.