The late writer’s best work reflects the larger anxieties of a society trying to shield its founding ideals against threats from hostile populations