Dark Energy Survey Year 3 results: Constraints on extensions to \ensuremathΛ CDM with weak lensing and galaxy clustering