Legal battles likely as divided states grapple with abortion