Labour MPs rebel in vote to outlaw activists’ vigils outside laboratories and beagle-breeding facilities