The U.S. Department of Justice and the state of Alabama agreed to a settlement to resolve a 2020 lawsuit alleging that the state's prisons are…