A Black man who says he was elected mayor of a rural Alabama town but has been kept from taking office by White leaders of the town has filed a federal civil rights lawsuit.