1) For the vast majority of Californians, the nearest state border is 3-5 hours away. 2) those abortion bans have definitely reduced the number of abortions. Not zero, but that's a silly goal for any ban.
Obviously the law is stupid. But states passing their own regulations isn't on its face.