So, 400 million dollars go into a small "dog" that just walks and keeps it's balance.
A robot that weighs less than two people (235 pounds) and can carry more than two people (350 pounds). It can keep its balance while weighing over 550 pounds, while walking on ice. It can walk up and downhill, and across rubble.
You don't seem to understand just how complex this robot is.
This is not wasted money, the Gravina Island Bridge is an example of wasted money (thankfully it was cancelled). It was going to be a bridge that connected a town of 7,500 to an airport, and cost $400 million. It is known as an example of "pork barrel spending".