Diageo has been granted approval by Europe's highest court to continue selling its spirits in bottles using UK measurements.