Federal court rules jail must give inmate addiction treatment