Norway's Ocean Rig and Friede Goldman Halter signed an agreement, ending a legal dispute over the building of two drilling rigs that…