Rumeysa Ozturk, 30, was taken by immigration officials as she walked along a street in the Boston suburb of Somerville on March 25. After being taken to New Hampshire and then Vermont, she was put on a plane the next day and moved to an Immigration and Customs Enforcement detention center in Basile, Louisiana.

Her lawyers filed a petition in Massachusetts seeking her release, but Justice Department lawyers argued that Ozturk’s petition was filed in the wrong state and should be dismissed or transferred to Louisiana.

Ozturk’s lawyers said at the time they filed the petition, they had no way of knowing where she was. They also noted that it was filed while Ozturk was in a vehicle within the control of Massachusetts-based ICE officials, making the Boston court the appropriate venue.