You do realize that if they actually did that /. would be howling about 1984 and Idiocracy and how it's NSA propaganda to "trust the system" and stop thinking for themselves with pages full quoting Franklin about security and liberty. After all it had to be about humanity willingly handing over control, we already had the story were they assume control by force and that's a villain story (I, robot). Meanwhile regular people like to identify with their heroes, the villains may be monsters or aliens or robots but the heroes are 99.99% human(oid). Nobody cares that you can't identify with Sauron or Smaug or King Kong or the Borg, but for a hero AI that's going to be tough.
You have it in the Swedish series "Äkta människor" where humanoid robots = hubots are blurring the lines, but it's more of a rebellion/independence story where they're breaking out of servitude and they're certainly not humanity's heroes. As an AI story it's more along the lines of Her, with humans and robots getting emotionally involved in each other which is probably not the kind of movie you were looking for. The superior intelligence kind of robot wouldn't fit in there, if you can't care about the hero I suppose you could care about the victims of whatever conflict that is drawn up. But those poor, helpless humans who can't fix their own situation but need outside help? That's a bit dreary.
Besides, I think that's a bit too similar to actual problems in the world today, movies like to show empowerment. People sympathize with those who are powerless victims, but they don't want to identify with them. And if the AI is smart enough to control bad guys, wouldn't it also be smart enough to control the good guys? I think it would be very hard to avoid it ending up as a giant puppeteer who's now pulling all the strings. And that's again more of a creepy story where you're being manipulated without you even knowing it, like the Matrix before you take the blue pill. There is the War Games computer who learns that the only way to win is not to play but I'm really struggling to come up with another computer "hero" story.