Germany's highest civil court has ruled that Volkswagen (VOWG_p.DE) must compensate customers who took out loans to buy vehicles involved in the carmaker's dieselgate scandal.