A Texas judge on Thursday granted an emergency order allowing a pregnant woman whose fetus has a fatal diagnosis to get an abortion in the state.

Late last month, Kate Cox, a 31-year-old Dallas-area mother of two who is about 20 weeks pregnant, found out that her developing fetus has trisomy 18, a rare chromosomal disorder likely to cause stillbirth or the death of the baby shortly after it’s born.

Cox told NBC News Thursday afternoon that she was “hopeful” and very grateful after the judge’s decision.