Judge tells hospital to take pregnant woman off life support