US Vice President Kamala Harris has gained enough votes to secure the Democratic Party’s candidacy for November’s presidential election.