Gimli is referring to the Army of the Dead, oathbreakers who failed to aid Isildur and were cursed. They have no honor and are therefore denied honorable rest even in death. Orcs, Haradrim, and Rohirrim are not the correct answer as they are living beings or different groups entirely.