The Supreme Court is facing the daunting task of balancing humanitarian and national security concerns.