The president has lost some ground as the returns come in and has made baseless attacks on the integrity of the election.