After their midterm win, Democrats will lead the House from January 3. Here’s how its speaker and leaders are chosen.