Taxing something makes it less common. Doesn't matter if it's carbon, cigarettes, sugar, productivity, or investing.
Tax investing and that shifts the line just like a carbon tax, except in this case the people investing are more likely to start buying politicians or sending their money overseas. Those things don't benefit society like having them fund the research and diligence necessary to find and invest in the next Google, the next Target, or the next energy revolution.