Spain’s Supreme Court has ruled that authorities acted illegally when they sent unaccompanied child migrants back to Morocco after thousands attempted to enter Spain in 2021.