Weapon transfers must align with international legal framework: UN disarmament official