A Liberal senator has lashed his own party for using divisive language on the subject of migration, saying it risks alienating voters.