The General Assembly is set to vote Thursday on what would be the first United Nations resolution on artificial intelligence, aimed at ensuring the powerful new technology benefits all nations, respects human rights and is “safe, secure and trustworthy.”