A growing group of former tech workers have alleged that their Silicon Valley employers harmed the public and compromised users’ safety.