Meta Platforms Inc. will show advertising on social network Threads for the first time, opening up a new revenue stream for the company and increasing competition for Elon Musk’s X.