The pontiff brought his moral authority to bear on the Group of Seven, invited by host Italy to address a special session on the perils and promises of AI.