Companies weigh their effects on the climate, as investors and regulators demand it