Federal officials are scaling back a program that enlists the aid of local police and sheriff’s offices to identify people who are in the country illegally, in favor of a national program that uses fingerprints collected by the FBI.