Australia is funding a major port upgrade in the Pacific as it jostles for influence among neighbouring countries.