Europe's top court has ruled in favour of the French government regarding the banning of "surreptitious" alcohol advertising.