Fair and Safe: A Real-Time Hierarchical Control Framework for Intersections