Townsend turned a fraught history with the USTA into triumph, leaving New York as the unexpected star and the defining figure of this year’s US Open