"They came to an agreement."
Translation:De kom til enighet.
The idiom does not have an indefinite article in Norwegian (I guess you can use it if the agreement came after a lot of arguing and there are still tension on the subject), you can circumvent the whole enighet by saying "De ble enige" (They agreed). Enighet sounds much more formal though.
(Furthermore I'd prefer to say They reached an agreement)