“Could you transplant the engines into an older model that had more lenient emission regs?”
Even easier, buy a beat-up same-year gas car and put the diesel in that. But no promises regarding parts, if the engines are actually disposed of.
If they're cheap enough, you could buy a couple of them and have one for parts.