Media code laws clear federal parliament