Trinity purchases rail-car leasing firm, finalizes Thrall Ca