In principal this already works in many cases, eg California/US subsidies on electric vehicles or Germany’s subsidies for solar. Both are very expensive with little benefit for the countries citizens compared to all other earthlings. To everyone else. They are just not aggressive enough.
Again, we don’t need an international consensus yet. The interesting part is putting financial pressure on foreign companies to reduce their CO2 footprint.