Spock said to Kirk that "allowing Khan access to their technical library was a bonehead manuever", Kirk said "quiet you".
Those may not be exact quotes.
I got the transcript, it's more subtle than I remember.
KIRK: This Khan is not what I expected of a twentieth century man.
SPOCK: I note he's making considerable use of our technical library.
KIRK: Common courtesy, Mister Spock. He'll spend the rest of his days in our time. It's only decent to help him catch up.