Eight foreign aid workers, including two Australians, have appeared in a Taliban court.