Democrats have no federal contests that would allow them to check President Trump’s power, but governors’ races, mayoral contests and referendums will test momentum and divisions in both parties.