From vaccine sharing to climate, G-7 talks yield agreements