Hierarchical Assignments: Stability and Fairness