The nation's top court has upheld the death sentence of a man convicted of arson in which five people died.