Australian parliament passes controversial media law