In 1901, the Democratic-dominated state legislature passed a bill requiring payment of a poll tax for voting, which effectively disenfranchised most blacks and many poor whites and Latinos. In addition, the legislature established white primaries, ensuring minorities were excluded from the formal political process. The number of voters dropped dramatically, and the Democrats crushed competition from the Republican and Populist parties. The Socialist Party became the second-largest party in Texas after 1912, coinciding with a large socialist upsurge in the United States during fierce battles in the labor movement and the popularity of national heroes like Eugene V. Debs. The socialists' popularity soon waned after their vilification by the United States government for their opposition to U.S. involvement in World War I.