Female prison workers, harassed by inmates and ignored by bosses, stood up for their rights—and won