Spain’s Supreme Court on Thursday said it had ended its investigation against 18 Catalan independence leaders who will now face trial, likely at the beginning of next year.