A computer specialist who deleted Hillary Clinton’s emails despite orders from Congress to preserve them was given immunity by the Justice Department during its investigation into her personal email account, according to a law enforcement official and others briefed on the investigation.