The justices blocked an executive order that banned birthright citizenship for the children of undocumented immigrants and some temporary foreign visitors.