Mortgage solicitors face liability ruling