An illegal immigrant who was involved in smuggling more than 3,000 others into Europe has been sentenced to 25 years in jail.