A man shot by police as he slashed at officers with knives has lost a legal bid to secure a reduced prison sentence.