Ramsey County to pay millions in TB lawsuit