The Whitney and the Brooklyn Museum could lose annual grants from the conglomerate, which gave $300m to charitable organisations over the past five years