The provider of the index is usually not the same entity as the fund manager. Although the fund is actually quite free in the choice of securities that it can use to track the index. It depends on the fine print of the prospectus. It could conceivably offer its shareholders voting rights regarding the presence of controversial items in its portfolio, at the risk of underperformance compared to the reference index.