A roofing contractor facing £3.1m in claims over a school fire has lost a preliminary High Court dispute over the interpretation of its insurance policy.