Australia's men's water polo team have recorded a vital victory over Croatia in Tokyo, marking their first win over the powerhouse in Olympic history.