Cosmological inference from standard sirens without redshift measurements