Residents of San Francisco’s Laurel Heights neighborhood filed a lawsuit to upend a massive redevelopment of the University of California, San Francisco, campus that would add 744 homes and apartments to one of the world’s most expensive and housing-starved cities.