Meta led S&P 500 gainers on Friday as Wall Street welcomed its push to monetize the hundreds of billions its spending on AI infrastructure.