The Mexican Supreme Court has chosen a woman to lead it for the first time.