He was the first detainee at Guantanamo to be convicted in a military commission, and now his conviction has been thrown out.