Australia is allowed to spy on US citizens.
US and Australia pool their collected intelligence. The US gives a list of names to Australia and asks if Australia has any information on those names.
This is pretty much how ECHELON worked, with UK, US, Australia, Canada and New Zealand all cooperating.