Cosmological Constraints from a Combination of Galaxy Clustering and Lensing -- III. Application to SDSS Data