President Donald Trump reaffirmed his decision to pull the US out of the Paris climate agreement at this weekend's G20 meeting in Hamburg.