New York City mayor promises court fight if Trump sends federal troops