Australia has accused Iran of directing an attack on a Jewish restaurant in Sydney through a web of intermediaries. The operation on the ground, court records suggest, was messy.