The French energy giant had agreed to buy a 25% stake in Adani New Industries Ltd. for an undisclosed sum to help fund green hydrogen projects in India, as the world’s third-largest polluter seeks to decarbonize.