An independent executive branch board has concluded that the National Security Agency’s long-running program to collect billions of Americans’ phone records is illegal and should end.