Gov. Gavin Newsom has signed legislation that aims to shield California elections from federal interference ahead of the state’s primary next week