Faced with diminished demand for Iranian oil because of economic sanctions, Iran’s president proclaimed defiantly on Tuesday that the country had such plentiful reserves of money that it could survive for years without exporting any oil.