Ted gives Brian his bracelet back and thanks him for the experience of being...him. It's kind of sad to me that Ted's greatest fantasy is being someone else. His insecurities are there long before we get to his drug problems next season, and they seep into every part of his life.
Then we get the real story of Ted's fantasy night...turns out he's bad at being Brian Kinney. He wants something more. Ted hasn't quite had his realization yet, but this scene is definitely setting up the T/E stuff to come.