The pivotal question in November’s New Jersey and Virginia governor races may be whether the outcome is shaped more by President Donald Trump’s electoral strengths or by his weaknesses.