In a change from prior administrations, the federal government is indefinitely detaining thousands of immigrants facing deportation proceedings.