In exchange, the companies will invest in oil and gas projects, echoing an earlier deal with the French energy giant TotalEnergies.