Judge sentences man who went on carjacking spree in 2016