A Pennsylvania state trooper has pleaded guilty to using state computers and databases to create AI-generated pornography.