After a dizzying series of headlines about Huang’s infidelity and ties to an alleged Chinese spy, his departure sets off a scramble to find a permanent replacement to lead the multitrillion-dollar colossus that grew from obscurity to a perch between Apple and Microsoft at the top of the S&P index.