Perella Weinberg Partners is buying the railcar leasing unit of insurance giant American International Group.