His zealous campaign to root out those he viewed as enemies of the state would test the limits of American decency and democracy.