By a vote of 50 to 48, the lawmakers beat back an attempt by Senator Phil Gramm, Republican of Texas, to remove the ban from an omnibus crime bill. The action broke a three-week deadlock that had stalled final passage.