A California law prohibiting the carrying of firearms in public spaces will go into effective at New Year’s Day, even when a legal case continues to fight the law.