The High Court has thrown out a defamation appeal bid by controversial MP Mark Latham against fellow lawmaker Alex Greenwich, ending a years-long legal battle.