Pennsylvania’s top election official repeatedly attacked Trump on Twitter