The presidents of Iran and Russia have signed a comprehensive strategic partnership deal for long-term cooperation.