A former solicitor at the Victorian state revenue office who was dismissed after alleged sexual harassment and “scandalous staring” has won his appeal in a defamation case against the Victorian government, with the case being sent to a judge for trial.