It was already considered unconstitutional to legislate based on the content of speech. Citizens United added the identity of the speaker.
the worth of speech “does not depend upon the identity of its source, whether corporation, association, union, or individual” -- https://supreme.justia.com/cases/federal/us/558/310/