The unprecedented trial exposes a deepening rift between Spain’s judiciary and Pedro Sanchez’s government