U.S. college endowments rebounded in fiscal 2017 from their worst annual decline since the 2009 recession, fueled by a stock market rally that accelerated after Donald Trump’s surprise victory.