Back in the day (i.e. when Mad Men is set and before), no-one said: "All you're good for is having kids". They didn't directly say that a lot. It was more like pointed reminders that someone was attractive. Or that someone wasn't married, or that someone is finally married (in the vein of "congrats on you finally graduating from college! you're a real person now!"). Or that someone "will make some man very happy", etc.
There is a lot of tradition of impling that the most important thing for a woman is to be married. That's the whole thing. So when you mention, in a setting with few women (and hence more susceptible to sexism), that someone is married, it might sound half like the old ways.
How in the hell do you read "All you're good for is having kids" into "Congratulations on getting married!"?
Again. Absurd.