TARP, which spent $418 billion to stabilize banks including Citigroup Inc. and Morgan Stanley and fund bailouts of companies such as American International Group Inc. and General Motors Co. , will ultimately cost taxpayers $24 billion, the Congressional Budget Office estimated in October.