Man sentenced for 2017 murder