Palmer Luckey, co-founder of virtual-reality pioneer Oculus, was ousted after his political activity sparked a furor within the social-media giant and Silicon Valley. His firing was one of the earliest political spats of the kind that is now roiling the technology industry.