Japanese and US officials in Tokyo have reached a framework agreement that should permit the resumption of beef trade between the two countries.