The president of one of America’s most powerful teachers unions pushed back on Melania Trump’s comments that robots could become central to child education.