The gunman who killed 23 people in an attack where he targeted Mexicans was sentenced to 90 life sentences.