Judge dismisses a lawsuit over South Dakota abortion-rights measure that voters rejected