California officials say they are ready to resist should the federal government attempt to assert control over the state’s voting system, as President Trump has suggested it should.