A last-minute intervention by Mayor Eric Adams helped keep