Alabama Supreme Court Justice Bill Lewis has been appointed to serve as a federal judge in the Middle District of Alabama.