Former High Court judge and royal commissioner Kenneth Hayne has warned directors they have a legal duty to act on climate change risk, include it in corporate strategies and report on it to shareholders, raising the real prospect that boards failing to act could end up in court.