The Treasury Department is weighing the sale of stakes it owns in hundreds of smaller banks, potentially accelerating the government's exit from the financial-system rescue and the Troubled Asset Relief Program.