A hotly-debated Aboriginal heritage protection order that stalled the development of a major gold mine has been overturned in the Federal Court.