The government has defended its Rwanda bill, which would see illegal migrants sent to the African country, from accusations it could break international law.