It's not uncommon in stories for there to be references, or tips of the hat, to other works of fiction. You don't get in trouble for plagiarism for using a couple sentences that are the same. That said, using anything from the 2009 movie is seriously suspect in my opinion.

In particular I found those lines/the ending of the movie to be the most un-ST thing I'd ever seen.