Part of abortion law thrown out