The education secretary says the “unprecedented” move is a measure of the gravity of the virus pandemic.