Data is just back in his position and rank after basically saying he would help "Destroy all Humans"?

Posted by MetalSufficient9522@reddit | TNG | View on Reddit | 55 comments

In Descent/Descent Part II, Data joins Lore and basically tells the crew he is going to help destroy all human life.

Of course, this is because of the emotion chip or something, but still. He is just back on the bridge with his rank after this? I would think he would be deactivated at minimum, if not destroyed. Certainly not just put back in his position with Starfleet.