En ankedomstol i USA slo fredag fast at Californias forbud mot å bære skytevåpen åpent i store deler av delstaten er grunnlovsstridig.