How the main legal and ethical issues in Machine Learning arose and evolved

How the main legal and ethical issues in Machine Learning arose and evolved. What events in the past caused this massive invasion of our privacy that is leading to a manipulated society and monitored democracies. And, most importantly, what are the possible solutions.