Court Halts Law Allowing Indefinite Detention of Americans