Senate votes to bar indefinite detention