New York Mayor Zohran Mamdani has threatened legal action if ICE continues using city-owned parking lots, while Homeland Security says federal law authorises the practice.