You are right about the first sentence.
The second sentence is incorrect (in my usage, anyway). It should be "... became a popular phrase in the real world thanks to the popularity of ..." Here, "thanks to" means "as a result of", "as a consequence of".