William Li has rejoined the ranks of the world’s billionaires as shares of his electric-car startup NIO rallied this year. The gains mark a dramatic comeback for a company that had earlier been struggling to boost sales.