A military judge has rejected arguments that Sen. John McCain improperly swayed the prosecution of Army Sgt. Bowe Bergdahl with negative comments about the soldier who walked off his post in Afghanistan.