As the group agreed to take a harder line against China, President Joe Biden hailed the summit as a return of American leadership on the world stage.