The US will allow Iranian officials, including President Masoud Pezeshkian, to attend the UN General Assembly in New York next week.