Trump told a cheering NRA crowd that the US is withdrawing from a UN treaty that regulates the global arms trade