Vice president Kamala Harris has secured enough delegates to earn the Democratic Party's nomination as presidential candidate.