Dutch brewer Bavaria has gained the backing of the European Court of Justice to continue selling its namesake beer in Germany, despite protests from an alliance of German brewers.