Supreme Court confirms order in which insurance losses should be prioritised