Regulations goal is to reduce CO2 output. If a private company want to achieve that by funding a foreign electric car company to create a reduced total footprint, that’s their choice.
Ultimately the regulation achieves its goal, reducing CO2. That fact it’s done by increasing competition in the automotive industry can only be seen as an extra win.