US court rules transgender person cannot be deported to Mexico