Newly released cabinet documents have shed light on Australia's ill-advised decision to become involved in the Iraq war more than 20 years ago.