The classic version is Kornbluth's 1951 story "The Marching Morons", itself pretty clearly the basis for Idiocracy.
(You could argue that "The Time Machine" was the original example.)