An unnamed foreign ship faces prosecution over an oil spill on the Great Barrier Reef after a 12-month investigation by Queensland government agencies.