A New York court has sentenced former Colombian drug kingpin Alberto Orlandez Gamboa to 40 years in prison for heading a cartel that smuggled large quantities of cocaine into the United States .