Business and technology groups panned Minnesota legislation to tax data collection by social media platforms, saying Wednesday that the cost, estimated at nearly $100 million annually, would be borne by consumers and hurt the state’s economy.