A new study found students with better teachers learned more in kindergarten — and earned more as young adults.