The UN General Assembly has unanimously adopted a landmark resolution to promote "safe, secure and trustworthy."