They have to comply with the law, and there's nothing wrong with anti-abortion ads. Facebook doesn't have an obligation to only sell ads to Democrats.
> subequently made that information available to anti-abortion groups
That part is probably misleading, I'm assuming they didn't give them any kind of information, they just allowed demographic targeting like they do for most kinds of ads.