It's not like over-hiring or laying people off is a crime. The employees presumably knew the deal going in (that they could be laid off). They got compensated for the time they worked.
No one owed them a job at Oracle in the first place. (Again, not to diminish how bad it feels / shocking it can be to be laid off!)