A court in the Middle Eastern island nation of Bahrain has sentenced 20 medics to 5- to 15-year prison sentences for trying to help anti-government protesters.