Judge Lind rules Bradley's treatment illegal but only gives 112 days sentencing credit