Russia and Iran have deepening military and economic cooperation, with both countries under US sanctions.