The story
First used in the 1858 play Our American Cousin. The shortened form wag the dog, with a political sense, was popularized by the film Wag the Dog (1997). For the verb phrase, see the tail wags the dog.
Etymology from Wiktionary, CC BY-SA 4.0.