Alleged victims of workplace sex discrimination are more likely to settle their federal lawsuits and be awarded compensation under a woman judge, a study suggests.