They weren't shut down, that was Amazons decision. The court only told them to reduce operations to specific categories of its store site - the idea was to somehow reduce operations to a safe amount as Amazon had repeatedly failed to so by itself. Amazon then made up the nebulous "essential products" category and made sure to complain loudly about the supposed nonsense the court required while it shut down french warehouses completely.