The billionaire Democratic candidate for president dropped out of the race, saying he no longer saw a path to victory.