The measure failed 212-206, far short of the necessary two-thirds majority to pass in the House.