Denmark's Supreme Court has ordered a leading Danish law firm to pay the country's tax agency 400 million Danish krone (€59 million) in damages over tax advice given by one of its former lawyers.