G7 commits to coal phaseout with caveats, may influence G20 and COP29 talks