He hadn't 'bargained on' how his new position in the company would change the way people treated him. [=he was surprised by how his new position changed the way people treated him]
You're allowed to go to the football game tonight, but I expect you to 'keep your side of the bargain' [=do what you agreed to do] and clean your room.
They've agreed to turn the land over to the state, and the state, as its part of the 'bargain', has agreed to keep it undeveloped.
(..) That's why I know what Barbossa is up to. All I need is a crew. From what I hear of Barbossa, he's not a man to suffer fools, nor strike a bargain with one. I'd say it's a good thing I'm not a fool. Prove me wrong. What makes you think Barbossa will give up his ship to you? (..)2003 Pirates of the Caribbean: The Curse of the Black Pearl
(..) if that's what you mean. Very well. Hand it over. We'll put your town to our rudder and ne'er return. Our bargain? Still the guns and stow them. Wait! You have to take me to shore! According to the Code-- First, your return to shore (..)2003 Pirates of the Caribbean: The Curse of the Black Pearl