Greens Deputy Leader Mehreen Faruqi has launched court action against One Nation leader Pauline Hanson over an offensive tweet.