> Obama ran on ending wars in Iraq and afghanistan
He mostly ran on ending Iraq, he called Afghanistan 'the good war'.
The reality is that these politicians could do far more but they just don't care enough about it.
For Trump for example the America First people in the administration were pushing that, but those people were kicked out and Trump in order to get along with the party just let them do their thing in Afganistan.
Obama was the same, in order to get out of Iraq he authorized the surge in Afghanistan.
The 'deep state' you are talking about exists, but they are supported by lots of people in congress and lobbies and the president, whatever he ran on has to negotiate with those interests to get anything done.