Did the index funds buy the underlying securities? If so, you helped finance business growth
Except for the initial IPO, the money paid for stock goes to the current stockholder, not to the original company. If I sell my 3M shares and buy GE stock, that's all on the savings side. I sell to one investor and buy from a different one. It generates no demand for product, it does nothing for the economy.