I strongly disagree that this is purely for marketing. As someone working for one of the aforementioned companies, we are all aghast at how quickly this administration has jumped to eroding everything we believe in. These companies' moves are motivated by very real horror at the US going down a dark path.
The worst you could say about these actions is that they are self-interested, as the Muslim ban affects a lot of my coworkers in a very negative way that, say, inner city violence in Chicago does not. But it's definitely not so cynical as to be mere marketing moves.