The global boycott against South Africa’s apartheid regime is credited, in part, for helping to end it. Now, climate change activists are borrowing from the same playbook — pulling dollars from those who fund the fossil-fuel industry.