As noted a half dozen times throughout the comments, they didn't lose 9.5 billion, it's looking more like possibly 2 billion.
But they also had a strong bargaining chip vs Samsung, and will likely reap benefits far exceeding their Moto stake.
Still, it's a strange/not-so-great move on google's part.
It's sad how a once mighty company is being sold around like a piece of house by some property flippers, and costing the flipper pretty 2 billion too...