Sir Keir Starmer has pledged to “restore the UK’s role as a climate leader” as he launched an international green alliance at the G20.