Catalan leaders plan legal challenge to Spain’s takeover