Pentagon chief on shaky ground with White House after breaking with Trump over protest response