That went fine (in that the military did in fact follow lawful orders under Democratic presidents, not in that those orders were necessarily good). It also went fine for the civil service under Republican presidents other than Trump. There are a number of explanations for the difference in perceived (and possibly real) professionalism, which I will not try to speculate on here - but this is not a partisanship problem. It seems to be something specific to Trump-as-President.