But it also threw out an existing rule that requires a judge to give consent before a legal abortion can be performed, which has been a major obstacle to achieving safe abortions where they are permitted by law.