With hundreds of planes out of position and crews out of hours, restarting the nation’s flight system is no easy task.