Supreme Court refuses to take up challenge to San Francisco gun law