After aggressive attacks from Republicans, BlackRock Inc. has exited one of the world's biggest climate finance groups for investors.