The pact, approved by 193 UN member states, seeks to address challenges including climate change and artificial intelligence.