A controversial bill that would effectively ban all but a few late-term abortions in one Aussie state has passed its upper house before falling short in the lower house.