A court will decide on Thursday whether German cities can ban heavily polluting cars, potentially wiping hundreds of millions of euros off the value of diesel cars on the country’s roads.