With its new law, California joins a dozen other states that have restricted the use of medical debt in credit decisions.