The Supreme Court is to rule on Friday on whether millions of motorists could be entitled to compensation on their hire-purchase agreements.