An emotional debate over balancing the lives of residents and officers led to a key approval Wednesday of California legislation intended to deter deadly police shootings — rules that advocates said would be among the most sweeping in the U.S. when tied to a related measure on officer training.