President Barack Obama has slammed the huge bonuses paid to greedy AIG executives in a blistering attack on the US insurance giant.