Anthony Edwards scored 40 points, and Minnesota pulled away late to beat Phoenix.