There is a bipartisan consensus on security and other matters in Australia. Most policy development in Australia is driven by the unelected agencies and departments that survive their political masters.
There is nothing in the values and philosophies of the ALP such that they would not have legislated this agenda were they in government rather than opposition.
There are so many other examples of this over history, such as the GST, Australia Card, refugee policy, copyright laws.