New York officials said Thursday they had reached a settlement with Merrill Lynch, Goldman Sachs and Deutsche Bank under which the three banks have