Iran says planning legal action against US over protest 'terrorism'