Seems like they have a good argument:
A New Lawsuit Aims to Decriminalize Prostitution in California
At the heart of the argument, according to Sperlein, the plaintiffs' attorney, are recent Supreme Court rulings on substantive due process. In Lawrence v. Texas, which overturned a law criminalizing anal sex in 2003, Sperlein says the justices used "language that was really extraordinary, the kind of language you never hear from the Supreme Court, which was that [criminalizing anal sex] was wrong, it was wrong when it was originally ruled on, it is wrong now, it's always been wrong. In that case they said that
the government could not use morality as a basis for regulating private consensual sexual activity."