Registrar threatens legal action against council over civil partnerships