14 defendants handed prison terms ranging from 4 years to life over deadly 2015 attacks