Republican elected US president for second time, with projections showing him easily over threshold needed to win race.