The commission of inquiry into the CFMEU has this week heard the union had a complex relationship with the former Labor government.