Threats against foundations and nonprofits supporting immigrant rights, the Black Lives Matter movement, and other progressive causes are on the rise, prompting some donors to pour more money into helping organizations and leaders stay safe.