France’s TotalEnergies says it will reduce investment after the decision to extend the windfall levy.