South Africa-born tech billionaire Elon Musk spent at least $270 million to help Donald Trump win the US presidency.