Businessman Clive Palmer's former solicitor unlawfully took $34 million and used it to buy gold bullion and a large property portfolio, a judge has heard.