San Francisco’s self-described ‘Catholic’ mayor, who has long history of openly defying Church teachings, says he’s running for governor