A police sniper potentially saved lives by shooting the rifle of the would-be assassin, a congressional report says.