In a statement after the ruling was announced , he said the decision ensures that U.S. officials can protect the country and bring terrorists to justice , while also protecting core American values .