Solomon Islands will have to consult Canberra before making new security or infrastructure deals under new pact.