The Pentagon said China has agreed to return a U.S. unmanned underwater vehicle collecting oceanographic data seized this week.