TOKYO — Even as officials on both sides of the Pacific hailed an agreement to resolve a tangled dispute over a Marine base on Okinawa, strong opposition to the deal in Okinawa and Prime Minister Shinzo Abe’s recent visit to a war shrine cast a shadow over the diplomatic celebration.

Despite the United States’ deep satisfaction with the agreement, a congratulatory telephone call expected Friday between Defense Secretary Chuck Hagel and his Japanese counterpart, Itsunori Onodera, was put off, American officials said.

The postponement had less to do with complications in Okinawa than with Washington’s concerns over Mr. Abe’s appearance this week at the Yasukuni Shrine, which honors the nation’s war dead, including several war criminals who were executed after Japan’s defeat in 1945. The visit was viewed with alarm by some of the United States’ other allies in the region, especially South Korea, for its glorification of Japanese militarism in the last century.