COVID had already killed thousands of people in other countries and was spreading in the United States when a top federal health official said schools should prepare to offer “internet-based teleschooling” in case they had to close for a period of time.