Judge allows Bergdahl lawyers to get top generals' emails