HARRISBURG, Pa.—In most years, the congressional district here wouldn’t be in play. The GOP holds a six-point advantage in party registration, and the region has a tradition of voting Republican.

But...