Mayor Michael R. Bloomberg announced yesterday that the city had arranged to buy the last wooden carousel in Coney Island for $ 1.8 million , averting an auction that could have sent the horses far from their native Brooklyn . ''