The government has agreed a deal with Nigeria to make it easier to remove people with no right to be in the UK.