(CNN) A federal judge ruled Monday that the Trump administration could not obstruct two undocumented pregnant teens in US custody from seeking abortions.

In her order, US District Judge Tanya S. Chutkan required the administration to allow the two teens to be transported to an abortion provider "in order to obtain any pregnancy related or abortion-related medical care and to obtain the abortion procedure itself."

Chutkan held that the teens would suffer "irreparable injury" without the order and said that she issued it in view of the need to preserve the girls' "constitutional right to decide whether to carry their pregnancies to term."

The judge did agree to stay her ruling for 24 hours pending appeal.

Just after its loss, the Trump administration appealed the ruling to the the US Circuit Court of Appeals for the District of Columbia and the Supreme Court.

Read More