With yet another national crisis looming, the president theatrically embraced his Democratic rivals and made livid his own party’s leaders