Officials had largely steered clear of arrests at immigration courts out of concern that they would deter people from showing up for hearings.