Tesla found a way to get out of environmental regulations at its Texas gigafactory