G-20 shut Trump out on climate, strike deal on trade