The tech billionaire’s backing of Donald Trump is part of a worldview that draws on Silicon Valley’s wildest frontiers