No city employs more tech workers than New York. Now it’s spending $10 million to train 40,000 people for AI jobs