(CNN) -- A state judge in New York on Monday invalidated the city's upcoming ban on sugary drinks in containers larger than 16 ounces in certain venues, a major setback for Mayor Michael Bloomberg, who has backed several laws aimed at New Yorkers' health. The ban was set to take effect on Tuesday.