The firing of the nation’s top military officer is the latest example of the president prioritizing fealty over sound policy and expertise.