New York mayor Michael Bloomberg has vowed to appeal against a judge's decision to halt a ban on large sugary drinks in the city and believes the law will still come into effect.