Artificial intelligence could help the fashion industry become greener, but unions worry workers will pay the price.