Senators compromise on juvenile sentence bill