Meta Platforms led the Magnificent Seven higher and was among the biggest gainers in the Nasdaq and S&P 500 Wednesday.