Textile factories closed after riots in Bangladesh are reopening after a deal was signed giving workers higher wages and enhanced rights.