The government knows the air marshal program is such a mess that the TSA formally checks the sobriety of air marshals showing up at the airport.
No air marshal has ever stopped a terrorist or hijacker since the service was founded in 1962. Although an air marshal did shoot and kill a US citizen in 2005. If something really bad did happen on a flight and an air marshal was onboard they lack the training to do anything about it.