A federal appellate court had earlier upheld four state restrictions, including a ban on dilation and evacuation abortion and a ban on abortions based solely on the unborn child’s sex.