The judge said the administration had to decide by Jan. 5 whether it wanted to “facilitate” the men’s return to the United States or let them contest their initial removals another way.