There are a bunch bunch of ideas for how to build a "thermostat." Some of them might be affordable for even a mid sized economy. We could find ourselves in a world where 26 different countries have competing climate control agendas and toolkits. Presumably Vanuatu has a different take that Latvia.
Perhaps this will be the 22nd century's alternative to resource wars.