The South African government has committed to protecting the country's textile and clothing industry after a wave of sector disputes this year.