Australia has expressed anger over the airport incident which had aimed to check if women had given birth.