The literary device Fitzgerald uses in the passage is irony.
Explanation: In "The Great Gatsby" by F. Scott Fitzgerald, it is ironic that the protagonist, Nick, confesses that he feels uncivilized, but Tom Buchanan rudely enters the conversation to express his racist views. While Tom believes that people of color are uncivilized, he is the one that acts uncivilized and doesn't realize it.