Protecting the rights of foreigners while empowering the historically excluded requires nuanced legal and political strategies.