Former Coalition Cabinet minister Alan Tudge has told a Royal Commission he assumed the controversial robodebt scheme was legal because its central method had been used for decades.