Daniel Lurie, the San Francisco mayor, relied on powerful tech executives and his own low-key approach to help his liberal ...