The prime minister fails to impose discipline on his colleagues and the opposition manages an improbable victory, but the judicial overhaul advocates aren't done yet