In a rare moment of bipartisan agreement, the U.S. House passed a resolution formally denouncing socialism, citing it as historically linked to dictatorship.