Ramsey County finalizes purchase of Union Depot