The vote, which remained uncertain till the end, was a blow to the National Rifle Association and demonstrated what President Clinton called extraordinary courage by the members of the House who he said had stood up for the national interest.