A High Court judge said some major car manufacturers did not install a device to cheat emissions testing.