A federal judge denied Google’s bid to dismiss a privacy lawsuit claiming it gave user data away without permission.