Judge says US government may have ‘acted in bad faith’ as he weighs contempt over deportation order