I don't see how this law would do that.
Existing law requires the court to limit access to these records to specified individuals, including, among others, the minor, the minor’s parents, and their attorneys.
the records currently are very restricted. this law would make it even more so. This would allow minors to change their name without their parents being entitled to that information.
If you choose to share that information about yourself this law won't effect you. This law will stop some people close to you from having access to your records through the court.
Unless I'm missing something this bill won't invalidate passports, but it will protect trans people from transphobic relatives or others.
Only you and your lawyer can access those if this goes into effect.
CA allows for birth certificate gender marker changes by self declaration. For $52 and a notary you can get a copy of a new birth certificate with a different gender marker.
Name changes require you to attach a court ordered name change document.
Different parts of the government handle different things. Courts don't do birth certificates.