City inks controversial deal to keep Sea Dogs