Australia has locked in a major defence agreement that the government said is part of a long-term plan to transform its naval firepower.