A string of losses has set off a fresh round of Republican soul-searching in California, where the party has been drifting toward irrelevance for years.