Royalties on oil and natural gas, along with lease payments on millions of acres of land, are helping the University of Texas, which is in second place, narrow the gap with Harvard.