Wright signs Mets contract to stay with team through 2020