President Donald Trump's campaign-trail criticism of Army Sgt. Bowe Bergdahl, while "problematic," hasn't prevented the soldier from getting a fair trial on charges that he endangered comrades by walking off his post in Afghanistan in 2009, a military judge ruled…