The United Nations has confirmed that an American freelance journalist, reportedly held captive for nearly two years by militants in Syria, was freed on Sunday in a handover to UN peacekeepers in the Golan Heights, who then released him to United States officials.