Embattled San Francisco Sheriff to Keep His Job