Clothing factories in Bangladesh's riot-torn export zone are set to reopen after talks between the authorities, government, unions and workers.