A Bahraini court sentenced defendants on Monday to prison terms ranging from 15 years to life imprisonment after convicting them of establishing and running a terrorist group linked to Iran's Revolutionary Guards, the country's public prosecution said.