Trump has threatened to withhold federal funding and deploy troops if Mamdani is elected mayor of New York City.