A military judge in Guantanamo Bay, Cuba, ruled the plea bargains were valid, a government official said Wednesday.