Britain’s Supreme Court has ruled a government plan to ship migrants to Rwanda illegal. The government says it will try to enact a law permitting the deportations.