A man sentenced to life for a murder stemming from a fight with a rival gang will remain in prison after a state appeals court upheld his sentence.