Nestle has won an appeal to protect the unique shape of its KitKat chocolate bar in the European Union, overturning a previous ruling in favour of Kraft Foods-owned Cadbury.