WASHINGTON—Top immigration officials are planning to instruct detention centers around the country that women in custody are entitled to abortions and should be transferred to receive one if they are being detained in a state where abortion is now illegal.