“It is a significant matter to override determinations made by public health officials concerning what is necessary for public safety in the midst of a deadly pandemic,” the chief justice wrote.