Connections and the Allocation of Public Benefits