Washington (CNN) A unanimous Supreme Court on Monday declined to set a precedent for whether or not an undocumented teen in US custody can get an abortion.

The court granted a request from the Trump administration to wipe away a lower court opinion that allowed an undocumented teen in Texas to get an abortion last year. Although the teen -- known as "Jane Doe" in court papers -- has obtained the procedure, the administration wanted the opinion vacated so as not to create a precedent for other similar cases that could come up.

A Justice Department statement said that the agency was pleased with the court's decision.

"The Supreme Court has repeatedly made clear that the federal government is not required to facilitate abortions for minors and may choose policies favoring life over abortion," the statement said. "We look forward to continuing to press the government's interest in the sanctity of life."

In a five-page per curiam opinion , the justices explained that the issue is now moot.

Read More