Anthony Edwards returned from injury to score 18 points as the visitors beat San Antonio Spurs 104-102.