Court rules on construction contract dispute