The Massachusetts judge left the question of potential consequences for another day.

The Department of Homeland Security did not immediately return messages seeking comment.

A federal judge ordered the government to maintain custody of migrants being deported to South Sudan in case the court finds their removal illegal and directs that they be…