The admission of regret from the chairman of the Joint Chiefs capped nearly two weeks of public discomfort with and outright condemnation of Trump’s leadership amid nationwide protests of racial injustice from some of the nation’s most revered military figures.