The New York Legislature has repeatedly rejected bills that would have regulated the consumption of high-sugar products. The legislature failed to pass bills that would have taxed sodas, banned them from check-out areas of large stores, and required warning labels. So the Court held that Bloomberg's soda ban improperly overrode the legislative process, because the legislature had tried and failed to achieve the soda ban.
Even if you agree that people waste too much money on soda, and drink too many sugary products, I don't think it is the duty of the government to play nanny to stop our sugar intake. This Court decision may have stopped local officials from sliding down a slippery slope toward the nanny-state government that Americans just don't want.
Listen to the radio commentary here: