A federal judge sentenced former U.S. Rep. Anthony Weiner, D-New York, to 21 months in prison on Monday for sending obscene material to a 15-year-old female, a scandal with repercussions that may have affected the outcome of the 2016 presidential race.

Weiner, 53, wept after U.S. District Judge Denise Cote of the Southern District of New York handed down the sentence. He had faced up to 10 years for one count of transferring obscene material and argued that he should receive probation.