Barclays Plc pulled out of its role as the lead underwriter of a municipal-bond sale that was set to build prisons for CoreCivic Inc. after criticism that the bank was backtracking on a pledge to no longer provide financing to for-profit jail companies.