The legislation would have made it a federal crime to perform or force a woman to undergo a sex-based abortion.