Spain's top criminal court has opened an investigation into July's deadly migrant surge into Ceuta, alleging it was facilitated by Morocco.