The broad U.S. stock market has historically tended to rise regardless of which party wins the White House, even if each party's policies can help and hurt different industries' profits.