More than 100 Venezuelan men who were sent to a prison in El Salvador must get an opportunity to challenge their detention, Judge TK James Boasberg ruled.