The bill for meeting climate goals will be immense. Governments worldwide are trying to figure out how to foot it