House Democrats have formally chosen Nancy Pelosi to be the next Speaker of the House, the first woman to hold the top position in the US House of Representatives.