The federal government has indefinitely detained thousands of immigrants facing deportation proceedings