The climax (and the larger film) is based on this Esquire article:
NBC's 'To Catch a Predator' arrived in Murphy, Texas, to conduct a sting operation. The only honest thing that followed was the gunshot.
www.esquire.com
While the show absolutely pilloried people, but the methods Perverted-Justice (and thus, the program at large used) resulted in several charges being thrown out. Chris Hansen also recently aired (on a follow-up show) a segment about a Minnesota 18 year old communicating with a 15 year old decoy, something that isn’t illegal in the state due to their proximity in age.
Yes, the show stopped bad people. But the show (and Chris Hansen) absolutely prioritized exploitative scandal over legal precedent. The movie highlights that.