Which parties control the House and Senate still has not been decided. But there are some lessons investors can take away from this week’s midterm elections.