(CNN) Former New York Democratic Rep. Anthony Weiner is set to be released from prison about three months earlier than initially scheduled, according to the Federal Bureau of Prisons website.

In May 2017, Weiner pleaded guilty to one charge of transferring obscene material to a minor in federal court in Manhattan. The charges stem from communications that the former congressman had with a 15-year-old girl on social media sites between January and March 2016.

"This crime was my rock bottom," Weiner said in court. "I have no excuse. ... I victimized a young person who deserved better."

Weiner was a prominent Democratic congressman before he resigned in 2011 following the release of sexually-charged, and sometimes explicit, text messages he exchanged with women other than his wife. During his run for New York City mayor in 2013, more sexually-explicit exchanges with other women were released before he was soundly defeated in that race.

Weiner's estranged wife, Huma Abedin, was a top aide to Democratic presidential nominee Hillary Clinton. The federal investigation into Weiner ended up playing a critical role in the 2016 election when emails potentially relevant to the FBI's investigation into Clinton's email server surfaced on Weiner's laptop. Former FBI Director James Comey announced the discovery of the emails less than two weeks before election day, only to conclude two days before the balloting that the emails changed nothing in the investigation. Democrats blame that announcement in part for Clinton's loss.

Read More