The US president will warn that UK-EU negotiations must protect the Good Friday Agreement, his adviser says.