A jailed Catalan separatist leader was entitled to immunity as a member of the European Parliament, the EU’s highest court ruled on Thursday.