Democrat Chris Pappas, a congressman from New Hampshire, has won a seat in the US Senate, becoming the first openly gay man to do so, according to The New York Times.