The federal agency charged with administering green cards and work permits dramatically scaled up its role steering immigrants into deportation proceedings long before its incoming director declared to lawmakers that it must be an enforcement body “at its core.”