NEW YORK (Reuters) - Citigroup Inc, one of the big U.S. banks hit hardest by the financial crisis, posted a quarterly profit as gains from the sale of its Smith Barney brokerage into a joint venture more than offset losses from its primary banking businesses.