Upton's 9th-inning hit gives Arizona win