That was a testament to the crucial importance of Pennsylvania, the biggest prize among the states in the Northeast and industrial Midwest where Republican Donald Trump had drawn closer in the polls as Election Day approached.