A planned German highway toll for cars discriminates against foreign drivers and breaches European Union law, the EU’s highest court said on Tuesday.