In a discussion that went back to the original New York City charter granted to Thomas Dongan in 1686, however, the judge noted that the city health department had always operated under an authority to control infectious diseases, not chronic conditions like obesity.