Negotiating Socially Optimal Allocations of Resources