This whole 'gods were created as a means of control' of argument is one of my pet hates as it is so vapid yet many 'sceptics' and 'freethinkers' parrot it as pretty much self-evident fact.
Imagining some caveman deciding to create something called a god that he didn't believe in but he reckoned could be a useful tool of control is a preposterous scenario.
Even if we broaden gods into popular religions, they were not created top down by a power figure with nefarious intentions, but evolved bottom-up. It vastly overstates the ability of a ruler to enforce a belief system on their subjects to see them as custom built tools of control.
Also seeing religions as things used cynically as a means of control, rather than something that people really did believe was true is assuming a modern mindset and is people assuming that their way of thinking is universal across time and space.
Of course they have been a means to power by some but they weren't created for that purpose. Even in these cases, it's probably fair to assume that most people believed in what they were doing, people found it pretty easy to believe that god's will was exactly the same as their own.
It's also true that religions have often been subversive to the powers that be and have been tools for empowerment rather than control.
Regardless of why and how the gods were created by us, several early civilizations seem to have at the least stumbled on their use as a means of legitimatizing the social order. I don't think that's disputable, do you?
As for the notion that the gods were actually created to legitimatize the social order -- that is, intentionally created as a means of social control -- I find that without much in the way of evidence for it.