Look, I hate Trump as much as the next guy, but Cook's job, being the CEO, is playing politics. It is literally part of the job. Making sure your company is not going to get legislated out of existence is one of the things you must do as CEO.
I would not want that job. As a matter of fact, as I started up the ladder in the company I was working for I realized that politics (internal and external) are a big part of the job and I was just not suited nor qualified for it, so I quit. But that is what CEO's must do if they want their company to be successful.