She channeled her experiences — and frustrations — as a Los Angeles prosecutor into an award-winning career as a television writer and producer.