A judge’s last-minute overturning of New York’s pioneering ban on large size sugary drinks has handed a defeat to health-minded mayor Michael Bloomberg and created confusion for restaurants that had already ordered smaller cups and changed their menus.