Prime Minister Anthony Albanese has confirmed Australians were onboard the US Navy submarine that sunk an Iranian warship.