California's governor has signed a bill that will prevent local governments from banning male circumcision.