ALBANY, N.Y. -- New York state's highest court refused to reinstate New York City's ban on the sale of big sodas, ruling that the city's health department overstepped its bounds when it approved a cap on sugary beverages.

The court largely ignored the merits of the ban on the sale of sugary drinks larger than 16 ounces (453 grams). In a 20-page ruling it determined the city's Board of Health engaged in policy-making, and not simply health regulations, when it imposed the restrictions on restaurants, delis, movie theatres, stadiums and street cart vendors.

"The Board of Health engaged in law-making beyond its regulatory authority," the opinion reads. "... It is clear that the Board of Health wrote the Portion Cap Rule without benefit of legislative guidance."

The city had hoped Thursday's ruling would overturn a lower court's decision that blocked the restrictions after restaurants, theatre owners, beverage companies and small stores sued.

In oral arguments earlier this month, attorneys for the city argued that sugary drinks are the largest source of added sugar in the American diet. They argued the restrictions were based on science, and weren't a true ban, only a limit on cup size.

Several judges on the Court of Appeals questioned where the board would draw the line.

Judge Eugene Piggott Jr. asked whether triple-decker burgers would be next. Judge Victoria Graffeo questioned the limit in light of exclusions like mixed coffee drinks loaded with more than 800 calories.

According to the American Beverage Association, New York City is the only jurisdiction attempting such a restriction, though several others around the country have tried and failed to impose special taxes on sugary drinks.