The marketing deal between the City of New York and the soft drink Snapple has been criticised by a judge but will remain in place.