RIO DE JANEIRO — Prime Minister Justin Trudeau has arrived in Brazil for the G20 summit, as Ottawa seeks its place amid a growing rift between the United States and booming economies in the developing world.