Legal abortions in the state will only be conducted in hospitals for emergencies and victims of sexual crimes starting in 2024.