Australia's Federal Court has upheld action by the nation's consumer regulator and reprimanded Cadbury over misleading labelling.