That was not the legal theory espoused in it. It said the court can consider everything. If trump presents a EO that demonstratively makes america safer without discriminating against a protected class of people, it will pass legal muster.