Swansea Council has launched legal action against the WRU and Ospreys owners Y11, claiming the proposed sale of Cardiff Rugby would be unlawful.