California city to repeal one-gun-per-month law after court ruling, highlighting widening divide in state gun policies.