Many airlines imposed vaccine requirements on their pilots and staff while the virus and its fast-moving variants dogged the skies, notably in 2021.