Many workers at major tech companies saw themselves as responsible for creating platforms that let fake news propagate, the alt-right find an audience, and the Trump presidency potentially surveil its critics.