I worn in Automotive despite hating cars and believing the industry is fundamentally at fault for the state of the world currently (Leaded gasoline, micro plastics, and climate change) and is working on contributing to the death of privacy and owning things.
There are a few different things that help me sleep at night, though I don't sleep well in general.
First, I have poor self image. This means both that I struggle to believe I can find work elsewhere and also that I don't feel like I'm good at my job. You might think that would make me want to leave more and believe me I do, but it also kind of Uno reverses the act of working for them. If I think I'm bad at my job and my job is at an evil corporation, then I'm actively draining the organization of money that could be spent elsewhere.
Second my work mostly doesn't touch on the things that are vile and awful about the industry. I'm a programmer and my work primarily deals with displays and control interfaces. A display not coming up isn't going to harm the industry in any meaningful way, but it will impact a person using the end product. Since that's where most of my work lies it is easy to rationalize doing those things.
I'm unhappy my industry exists and has done such damage to the world, but until I can find something better I'm stuck.