US President Barack Obama has called Wall Street bonuses "the height of irresponsibility" and "shameful".