Donald Trump and the Republicans are scrambling to lock up votes ahead of election day. But the Democrats are counting on a wave of public resentment over rising prices to push them over the finish line, giving them the keys to Congress. Some of the contests have turned ugly.