What is an example of society positively influencing science?

People rejecting the heliocentric theory introduced by Copernicus.
The invention of the cotton gin increasing the need for slaves.
Companies that use technology in place of humans creating fewer jobs for people.
People speaking out against animal testing that lead to the invention of artificial tissue.