In this case, GitHub took actions similar to what you describe, donating $500k to "nonprofits helping communities adversely affected by the Trump administration’s immigration policies": https://www.latimes.com/business/technology/story/2019-10-31...
Personally I think $500k is a bit small, and if I were Nat Friedman in this situation, maybe I would have announced a few extra paid leave days for employees engaging in protest, strikes, visiting elected officials to lobby for change, etc.
Nat Friedman's quote on this particular request from employees is "Picking and choosing customers is not the approach that we take to these types of questions when it comes to influencing government policy."