Judge says US must allow migrants a chance to challenge in court any deportations to Libya