The S&P 500 is cap-weighted, so the average value per company is meaningless. Nvidia is currently 7% of the index, while the smallest member is 0.01%.
Since Nvidia was already a part of the S&P 500 (and other similar indices) prior to its big run, those index investors generally profited from its rise. New flows into those funds do help prop it up, though.
The DJIA is a weird historical relic, and there's little reason for anyone to buy a fund tracking it. It's possible that those who did anyways will end up holding a tiny fraction of the bag due to this change, but it's not a big effect.