June Textile Factory has agreed to pay compensation to around 4,000 workers after the plant was closed by a fire earlier this year.