Federal judge rules detention of Guantanamo detainee is unlawful