Consistent with the provisions of law, the City shall have power to acquire any premises within the City, either by purchase at any tax or other public sale, or by purchase from the State or the fee owner, when the purchase of such property is necessary to protect the lien of the City for any City taxes, assessments, and charges. The City may hold, lease, or sell the property so acquired. Any such acquisition shall be deemed for a public purpose.