The lawsuit claims the judge experienced racial and gender discrimination, a hostile work environment and retaliation.