U.S. District Judge Vaughn Walker, noted for striking down California’s voter-approved ban on same-sex marriage, will teach at the University of California, Berkeley School of Law following his retirement at year’s end.