Gov. Gavin Newsom on Thursday named 18 new trial court judges, pulling heavily from the ranks of current and former prosecutors and public defenders to fill vacancies in 10 counties.