A judge in Spain has agreed to hear a lawsuit against Barcelona president Sandro Rosell over the cost of Neymar's transfer from Santos.