German Chancellor Angela Merkel closed the G20 summit with a rebuke to US President Donald Trump's stance on climate change, but appeared to make a concession on his protectionist trade policies.