Bon Secours Mercy Health hospital system is selling a majority stake in its billing-software company to private-equity firm Golden Gate Capital in a deal that people familiar with the matter valued at roughly $1.2 billion—the latest transaction involving a health-care back-office technology firm.