His campaign aimed from the outset to remake the political coalitions that have underpinned American elections for generations.