A judge has ruled that Donald Trump committed fraud for years while building the real estate empire that catapulted him to fame and the White House.