Jury sentences man to life in prison in beating death of bedridden man