A New York judge has ruled that John Thain , former CEO of Merrill Lynch , must name names in a state probe into bonuses paid out at Merrill in late December , just days before Bank of America acquired the firm .