Who is the villain here? As always, it’s the Federal government that created these idiotic standards.
The standards were arbitrary and not based in any sense of reality.
VW complied with the law -
“when the test equipment is hooked up, the engine shall emit no more than X of substance Y”.
They complied.