A bill limiting the number of foreign students Australia accepts has caused anxiety at home and abroad.