A federal judge in Oregon said Tuesday he would block the Trump administration from enforcing a ban on abortion referrals at federally funded family planning clinics.

U.S. District Judge Michael McShane, who was appointed by former President Obama, said late Tuesday he would grant a preliminary injunction in a lawsuit filed against the Trump administration by Planned Parenthood and the American Medical Association (AMA). However, he has not decided whether the decision will apply nationally, according to The Oregonian. That means the changes will be blocked either in Oregon or nationwide while they are challenged in court.

McShane, who made the comments after hearing arguments in the case Tuesday, said he will file a formal written opinion soon.