It’s among the starkest examples yet of President Donald Trump flexing his role as commander-in-chief since taking office.