Iran and the United States have reaffirmed their commitments to diplomacy at a contentious meeting of the U.N. Security Council