The argument does not hold any sort of deeper inspection. The greats of quantum mechanics, people like Bohr, Heisenberg, Schrödinger etc. we're all professors, which at the time put you up in the highest ranks of the middle class or the lower upper class + the status of the title it implied in Germany for example. They were amongst the highest paid salaried employees. In comparison now a typical professor salary is lower than what many junior software developers get straight out of undergrad. And that is after years of job uncertainty through PhD, postdocs and tenure track. Essentially the only ones left do out of idealism. (I also believe this long uncertainty is a big factor in the large gender imbalance, women are much less tolerant of this then men)
The other irony is that Teller himself was part (came out) of one of the biggest counter examples. The Los Alamos project pushed unprecedented funding into science, and it let to many discoveries that would have taken decades longer otherwise.