Even as President Trump stays overseas, Tuesday’s governor races in New Jersey and Virginia — and local contests from New York to California — are shaping up as a quiet referendum on his influence.