New Hampshire Democrat Chris Pappas has won a US Senate seat, becoming the first openly gay man elected to the chamber while preserving Democratic control of the seat.