The newly passed legislation would sharply curtail abortion access in the state and could take effect Friday.