DocuSign will lay off 9% of its workforce as part of a major restructuring plan, the company announced Wednesday.