Massachusetts is awarding $1.5 million to community colleges to help 500 adults train for high-demand careers.