Federal judge upholds detention of Yemeni Gitmo inmate