In a test of a new California law requiring the release of police records in shootings and other cases, the Sacramento Bee and Los Angeles Times sued the Sacramento Sheriff’s Department, charging that it is refusing to follow the statute that requires the release of records on deputies who fired weapons or engaged in misconduct on duty.