The government had been preparing to shut down the program that ships free coronavirus tests to American households and was considering destroying 160 million tests.