A United Airlines pilot ordered pizza for all his passengers after an emergency landing left them stranded