As for the military, Mr. Trump’s comments suggested that he saw service members as another constituency: Like factory workers, farmers and coal miners, they seemed to be cast as an interest group to be wooed.