Investment giants including Apollo Global Management, BlackRock, Capital Group, KKR and State Street are jostling to launch private-credit exchange-traded funds and other retail products. The funds would allow anyone to buy into the $1.7t market for loans made by Wall Street’s nonbanks to corporations and consumers.