The Commonwealth Bank of Australia will have to hand over a preliminary tranche of documents relating to seven large-scale oil and gas projects it is financing in a lawsuit that will test whether the bank has complied with its stated commitments on climate change.