California is the world’s fifth-largest economy. Laws tested there often spread across the U.S. and around the world.