Though in one sense Mr. Pence's trip was a routine visit with service personnel ahead of the holidays, it was also bound to bolster the standing of President Ashraf Ghani amid a political showdown with a powerful northern governor.