Amid a protracted war with Iran and a presidency still defined by scale and confrontation, Trump now finds himself confronting one such moment, an embarrassing loss in a district that includes Mar-a-Lago.