US Congress acts on gun violence after setback for activists