The landmark decision will prevent women from being criminally prosecuted for ending their pregnancies.