The measure failed 47-52, with Republican Rand Paul joining all of the Democrats except John Fetterman.