A federal appeals court affirmed a ruling Wednesday that struck down one of the most restrictive anti-abortion laws in the country: a North Dakota law that bans abortions when a fetal heartbeat can be detected, which can be as early as six weeks into a pregnancy.