The journalist and president clashed shortly after midnight as the extent of the Republican party's losses became apparent.