Pauline Hanson has lodged an appeal after a court found she had racially discriminated against a fellow senator in a tweet.