The returns from the endowment are used to support university programs. The endowment itself is not spent - it's a long-term investment which produces dividends, not a spending fund.
Universities will dip into endowment funds if the returns are worse than expected. They will pretty much never make plans to dip into endowment funds, though.