In any sane system, the CO2 emitter would be taxed --- the electricity generation company. This would be the same as the cloud provider if they generated their own electricity and that caused CO2 emissions.
Do you have any specific CO2 tax regime in mind? EU? US?
If you mean who is responsible in a moral sense, all three are responsible to some degree, as are the consuming company's customers.