UNITED NATIONS — The United Nations General Assembly voted overwhelmingly on Tuesday to approve the first-ever treaty to regulate the enormous global trade in conventional weapons, for the first time linking sales to the human-rights records of the buyers.