A Tunisian imam expelled from France for alleged hate speech has said he would take legal action in a bid to overturn the decision.