The Albanese government has found a way to pass laws overhauling online safety after the Coalition ruled itself out.