Police unions sue over release of undercover officers' names