The court gave a short deadline because it should have been done a while ago already. Let's not pretend like it's a surprise.
The government asked to stop any non-vital activity a month ago. Amazon, instead of interpreting this as: let's reduce our activity to just the part that qualifies as vital (vital for the country, not vital for Amazon margins), interpreted this as: since we ship some vital stuff, all of our activity is vital, and can proceed like business as usual. This is just a usual greedy move where profit comes before health of the employees.