Many prominent businesses are now writing racial and gender quotas into their credit agreements with banks, tying the cost of borrowing to the companies’ workforce diversity. The losers will be innovators, pensioners, and the consumers, who will bear the costs of a distorted market.