Are bar end shifters legal?

Yes, bar end shifters are legal and also substitute for bar end plugs.