A Pseudo-market Approach to Allocation with Priorities