A Texas judge on Friday issued a temporary exemption to the state’s abortion ban that would allow women with complicated pregnancies to obtain the procedure and keep doctors free from prosecution if they determined the fetus would not survive after birth.