The Supreme Court ruled that former Bush administration officials could not be sued for policies adopted after the terrorist attacks that led to the detainment of Muslims.