A federal advisory panel voted narrowly on Tuesday to recommend a ban on Percocet and Vicodin, two of the most popular prescription painkillers in the world, because of their effects on the liver.