How Trump secured historic US election victory