The Boston technical college has secured $2.5 million in state funds for job training in the growing green economy.