A Bangladesh court handed death sentences to seven members of an Islamist militant group on Wednesday for their role in an attack on a cafe in 2016 that killed 22 people, mostly foreigners, in the South Asian nation's worst such incident.