Cork City Council pays €6.2m to escape 24-house deal amid contractual dispute