Rwanda has agreed to accept up to 250 migrants from the US in a deal agreed with President Donald Trump's administration.