The action by the Treasury Department was announced less than a day before Bank of America reports quarterly earnings.