TOKYO — The United States and Japan agreed on a new timetable for the return to Japan of an unpopular Marine air field and other military bases on Okinawa on Friday, moving to solve a long-festering issue that has bedeviled America’s ties with its largest Asian ally.