A legal action over claims that loyalists were wrongly interned at the height of the Troubles in Northern Ireland to “even up the score” has been settled.