LAS VEGAS—A Democratic presidential candidate—running against the establishment and raising millions for his campaign online—drew hundreds of young voters to a union hall here, pitching a radical idea to remake the U.S. economy.

The candidate wasn’t Bernie Sanders, but Andrew Yang could benefit from the comparison.

Mr. Yang, a tech entrepreneur,...