The New York City mayor said he was currently consulting with officials to evaluate his legal authority regarding a potential detention