Elon Musk, the owner of X, criticized advertisers with expletives on Wednesday at The New York Times’s DealBook Summit.