county’s “wealth-based detention and unequal access to the courts” violates the U.S. and California Constitutions