A military judge on Friday declined to send Army Sgt. Bowe Bergdahl to prison for walking away from his remote post in Afghanistan eight years ago.