DETROIT — UAW rank-and-file members voted overwhelmingly to give themselves a direct role in choosing union officers, a margin that suggests a lack of confidence in the union's leadership after a sweeping corruption investigation sent two former presidents and 13 others to prison.