The trouble is that unlike in the perfect world we wish the market worked in, the most deserving are not always the best funded. So it would probably be more ethical for either 3M or the "price gougers" to offer some sort of preferential pricing - although deciding who to offer it to might be tricky.
Perhaps, in an ideal world, the government is competently in charge of any urgent social emergency, and if resources are required the government can pluck them out of any incipient market bubble by gently requiring that the entire stock be sold to them, at a fair market price.