Iran will remain part of the Nuclear Proliferation Treaty, the country’s president said, despite the looming threat of renewed UN sanctions and a domestic push by some lawmakers to adopt a more aggressive posture.