In a final push to win Pennsylvania, among a handful of battleground states crucial for his re-election chances, President Trump this week ramped up attacks on rival and Democratic nominee Joseph R. Biden Jr. over hydraulic fracturing, aka fracking.

Following a slew of television and online advertisements striking at Biden’s energy stances, Trump held several political rallies in hopes of galvanizing voters who work in the state’s thriving natural gas industry. He has characterized Biden as a candidate bent on banning gas extraction — though Biden insists that is not his position – and eliminating oil and gas jobs.

“The Biden energy shutdown would inflict deep pain on Pennsylvania,” Trump told a crowd of supporters during broadcasted remarks in the Lehigh Valley, in...