Self-published articles from a longtime ally are showing up in the vulnerable Pennsylvania Republican’s attack ads.