Mayor Zohran Mamdani said he was in “an active conversation” with New York City’s Law Department on whether he had the authority to arrest the Israeli leader.