A cost-cutting effort and spike in endowment money helped the Ivy League institution weather political and economic instability in fiscal 2026.