The High Court has ruled some insurers should have paid out for losses caused by lockdown.