Microsoft, OpenAI and Anthropic are providing millions of dollars for AI training to the American Federation of Teachers.