Cork City Council votes for legal action against merger