A former lawmaker charged with nearly a dozen counts of distributing child sex abuse material will plead guilty.