Responses to violent disorder during the summer cost two North East police forces more than £2.2 million in additional staffing and damages.