The Northern Irish peace process was given to the British government "on a plate", Gerry Adams has told the High Court .