Anthony Weiner was a young congressman on the cusp of higher office when a sexting scandal forced a humiliating resignation. Just two years later, he ran for mayor of New York City, betting that his ideas would trump his indiscretions.