You need to do kind of a slight "back pull" on the bar-end while tightening the screw.
This will keep the nut from spinning freely inside the handlebars by keeping it pressed up against the rubber expansion piece. As you tighten the screw while slightly pulling out on the bar-end, it should start pulling itself in tighter toward the handlebar.