The European Commission has passed a new regulation limiting the use of hazardous chemicals in clothing, textiles and footwear.