Andy1's got it right. Even if it weren't a call-back, it fits Ted's character (and Marshall's, for that matter) perfectly. I'm sure Ted loves the entire first trilogy, but it would've been hard to fit that whole movie-watching experience into the story.