Australian planned holy war attacks, court told