Corporate foundations have given millions to the Boy Scouts of America and its subdivisions in recent years despite that organization’s policy of excluding gays and lesbians. Many of those same foundations have policies against giving to organizations that discriminate based on sexual orientation.