G7 summit wraps with pledges on COVID-19, climate, and China