Almost 400 jobs have been saved at fabrics company Foss Manufacturing after the 52-year-old firm recovered from bankruptcy.