SoftBank Group Corp. has secured a $10 billion margin loan backed by its stake in US tech giant OpenAI, marking another fundraising milestone in its bet on artificial intelligence.