The removal of a portrait of Gen. Mark A. Milley, the former chairman of the Joint Chiefs of Staff, from a Pentagon hallway was among the president’s early actions.