An Australia-first proposal that would have forced the government to help women leave the sex work industry has been defeated.