> Maybe it was the right decision at the time to lay them off?
It probably was the right decision to lay everyone off. What was not the right decision, and this should have been obvious, was hiring 10+k more employees than you actually need because you assume that this free money will last forever. He was almost certainly aware and signed off on this mass hiring. Other companies didn't make this mistake; Tim Cook didn't take a bonus that year to avoid mass layoffs.
> he certainly lost a lot of goodwill with his workforce and I'm sure the internal politics were tricky for anyone involved.
He probably did, because he's a bad CEO. He was right to lose goodwill.
> No one is getting "punished" - there was no promise of ten years of employment from Google.
No, there isn't a legal promise or anything, but people go to these BigCos primarily for stability. If you want an exciting job with lots of interesting new things, it's much easier to find that in a startup, but startups can be frustrating because they're inherently unstable. This is partly why startups tend to be made up of very young people; it's much easier to deal with volatility if you don't have a family.
You're obviously not "entitled" to a job, but the people who run Google aren't complete idiots; they know people are joining BigCo because they think it's going to be relatively stable. They depended on that in order to do all this overhiring.