This is actually a main proposal by William Nordhaus [1], who won the Nobel Memorial Prize in Economics on climate change modelling! TLDR: So called climate clubs (or "reasonable countries") would punish countries that are not meeting the clubs rules (i.e. a carbon tax of a certain level) by levying tariffs.