The University of Texas, which is making millions from land it leases for oil and gas drilling, is getting close to overtaking Harvard University as the school with the largest endowment.