A rioter who helped fuel a fire outside a hotel housing asylum seekers has been jailed for nine years.