It's not precisely illegal. I'm assuming that was a rhetorical device. There are some flight restrictions in place, though. Reduction in flights is also causing a larger than normal number of "ghost flights," which are a pure cost incurred to move people and aircraft around. [0]
---
[0]: https://www.cnn.com/travel/article/airport-slots-ghost-fligh...